From 1940d7f4608dc8ee422f8d059bd82242591fe60e Mon Sep 17 00:00:00 2001 From: Niels Bauman <33722607+nielsbauman@users.noreply.github.com> Date: Mon, 30 Jun 2025 08:55:49 -0300 Subject: [PATCH] Fix typo in ILM retry action (#130255) A change in #128930 introduced a typo which could result in erroneous cluster state updates. --- .../elasticsearch/xpack/ilm/action/TransportRetryAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/action/TransportRetryAction.java b/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/action/TransportRetryAction.java index 5c3200c873877..2583a80a3cfb6 100644 --- a/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/action/TransportRetryAction.java +++ b/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/action/TransportRetryAction.java @@ -80,7 +80,7 @@ protected void masterOperation( submitUnbatchedTask("ilm-re-run", new AckedClusterStateUpdateTask(request, listener) { @Override public ClusterState execute(ClusterState currentState) { - final var project = state.metadata().getProject(projectState.projectId()); + final var project = currentState.metadata().getProject(projectState.projectId()); final var updatedProject = indexLifecycleService.moveIndicesToPreviouslyFailedStep(project, request.indices()); return ClusterState.builder(currentState).putProjectMetadata(updatedProject).build(); }