File tree Expand file tree Collapse file tree
server/src/main/java/org/elasticsearch/cluster/service
x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -444,9 +444,6 @@ class TaskOutputs {
444444 Map <Object , ClusterStateTaskExecutor .TaskResult > executionResults ) {
445445 this .taskInputs = taskInputs ;
446446 this .previousClusterState = previousClusterState ;
447- // In case indices lookup was built lazily then by invoking this method we ensure it gets built and specific validation occurs
448- // TODO: is there a better way?
449- newClusterState .metadata ().getIndicesLookup ();
450447 this .newClusterState = newClusterState ;
451448 this .nonFailedTasks = nonFailedTasks ;
452449 this .executionResults = executionResults ;
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ class IndexLifecycleRunner {
6767 builder .failure (task , e );
6868 }
6969 }
70+ // Trigger indices lookup creation and related validation
71+ state .metadata ().getIndicesLookup ();
7072 return builder .build (state );
7173 };
7274
You can’t perform that action at this time.
0 commit comments