Skip to content

Commit

Permalink
Add assertion for making sure inference runs last
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Oct 26, 2023
1 parent 8ae3cc5 commit 7862cd1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ public TransportBulkAction(
this.indexingPressure = indexingPressure;
this.systemIndices = systemIndices;
clusterService.addStateApplier(this.ingestForwarder);

assert bulkRequestPreprocessors.get(bulkRequestPreprocessors.size() - 1) instanceof FieldInferenceBulkRequestPreprocessor
: "Last bulk request processor should be the inference processor";
}

/**
Expand Down

0 comments on commit 7862cd1

Please sign in to comment.