Skip to content

Commit

Permalink
CR: Force the _none pipeline on all requests that have a null pipelin…
Browse files Browse the repository at this point in the history
…e set
  • Loading branch information
original-brownbear committed Aug 1, 2018
1 parent b6d3ecb commit 6a9ebae
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,12 @@ protected void doExecute(Task task, BulkRequest bulkRequest, ActionListener<Bulk
String pipeline = indexRequest.getPipeline();
if (pipeline == null) {
IndexMetaData indexMetaData = indicesMetaData.get(indexRequest.index());
if (indexMetaData != null) {
if (indexMetaData == null) {
indexRequest.setPipeline(IngestService.NOOP_PIPELINE_NAME);
} else {
String defaultPipeline = IndexSettings.DEFAULT_PIPELINE.get(indexMetaData.getSettings());
indexRequest.setPipeline(defaultPipeline);
if (IngestService.NOOP_PIPELINE_NAME.equals(defaultPipeline) == false) {
indexRequest.setPipeline(defaultPipeline);
hasIndexRequestsWithPipelines = true;
}
}
Expand Down

0 comments on commit 6a9ebae

Please sign in to comment.