Skip to content

Commit ebed2d2

Browse files
Fix Broken Clone Snapshot CS Update (#64116)
We must not remove the snapshot from the initializing set in the `timeout` getter. This was a plain oversight/mistake and went unnoticed. It can lead to the removal of a valid snapshot clone from the cluster state in rare circumstances (e.g. when a node concurrently joins the cluster or a routing change happens as it did in the linked test failure). Closes #64115
1 parent dc855ad commit ebed2d2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@ public void clusterStateProcessed(String source, ClusterState oldState, final Cl
405405

406406
@Override
407407
public TimeValue timeout() {
408-
initializingClones.remove(snapshot);
409408
return request.masterNodeTimeout();
410409
}
411410
}, "clone_snapshot [" + request.source() + "][" + snapshotName + ']', listener::onFailure);

0 commit comments

Comments
 (0)