Skip to content

Commit d727c33

Browse files
Fix Broken Clone Snapshot CS Update (elastic#64116) (elastic#64158)
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 elastic#64115
1 parent ca30261 commit d727c33

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

-1
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,6 @@ public void clusterStateProcessed(String source, ClusterState oldState, final Cl
556556

557557
@Override
558558
public TimeValue timeout() {
559-
initializingClones.remove(snapshot);
560559
return request.masterNodeTimeout();
561560
}
562561
}, "clone_snapshot [" + request.source() + "][" + snapshotName + ']', listener::onFailure);

0 commit comments

Comments
 (0)