Skip to content

Commit 40e5303

Browse files
authored
Fix typo in ILM retry action (#130255) (#130326)
A change in #128930 introduced a typo which could result in erroneous cluster state updates.
1 parent 46dc734 commit 40e5303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/action/TransportRetryAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected void masterOperation(
8080
submitUnbatchedTask("ilm-re-run", new AckedClusterStateUpdateTask(request, listener) {
8181
@Override
8282
public ClusterState execute(ClusterState currentState) {
83-
final var project = state.metadata().getProject(projectState.projectId());
83+
final var project = currentState.metadata().getProject(projectState.projectId());
8484
final var updatedProject = indexLifecycleService.moveIndicesToPreviouslyFailedStep(project, request.indices());
8585
return ClusterState.builder(currentState).putProjectMetadata(updatedProject).build();
8686
}

0 commit comments

Comments
 (0)