Skip to content

Commit

Permalink
do indices lookup elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Oct 6, 2021
1 parent a6cbfce commit 0ea5c7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,6 @@ class TaskOutputs {
Map<Object, ClusterStateTaskExecutor.TaskResult> executionResults) {
this.taskInputs = taskInputs;
this.previousClusterState = previousClusterState;
// In case indices lookup was built lazily then by invoking this method we ensure it gets built and specific validation occurs
// TODO: is there a better way?
newClusterState.metadata().getIndicesLookup();
this.newClusterState = newClusterState;
this.nonFailedTasks = nonFailedTasks;
this.executionResults = executionResults;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ class IndexLifecycleRunner {
builder.failure(task, e);
}
}
// Trigger indices lookup creation and related validation
state.metadata().getIndicesLookup();
return builder.build(state);
};

Expand Down

0 comments on commit 0ea5c7e

Please sign in to comment.