Ensure paused shard snapshot can be deleted#141408
Ensure paused shard snapshot can be deleted#141408elasticsearchmachine merged 3 commits intoelastic:mainfrom
Conversation
When a shard snapshot is paused due to node shutdown, the associated snapshot can be deleted before the shard snapshot transition to another state. When this happens, we ensure such shard snapshot is deleted directly without going back to the data node which is incorrectly ignored.
|
Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination) |
|
See this buildscan for the stress test failure due to this bug. When a shard snapshot is already |
|
Related, if the snapshot is deleted when the shard snapshot is elasticsearch/server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java Lines 2596 to 2599 in 3d56cb6 |
|
Hi @ywangd, I've created a changelog YAML for you. |
💔 Backport failed
You can use sqren/backport to manually backport by running |
💔 Backport failed
You can use sqren/backport to manually backport by running |
When a shard snapshot is paused due to node shutdown, the associated snapshot can be deleted before the shard snapshot transition to another state. When this happens, we ensure such shard snapshot is deleted directly without going back to the data node where it gets incorrectly ignored. (cherry picked from commit a2b9254) # Conflicts: # server/src/internalClusterTest/java/org/elasticsearch/snapshots/SnapshotShutdownIT.java
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
When a shard snapshot is paused due to node shutdown, the associated snapshot can be deleted before the shard snapshot transition to another state. When this happens, we ensure such shard snapshot is deleted directly without going back to the data node where it gets incorrectly ignored. (cherry picked from commit a2b9254) # Conflicts: # server/src/internalClusterTest/java/org/elasticsearch/snapshots/SnapshotShutdownIT.java
* Ensure paused shard snapshot can be deleted (#141408) When a shard snapshot is paused due to node shutdown, the associated snapshot can be deleted before the shard snapshot transition to another state. When this happens, we ensure such shard snapshot is deleted directly without going back to the data node where it gets incorrectly ignored. (cherry picked from commit a2b9254) # Conflicts: # server/src/internalClusterTest/java/org/elasticsearch/snapshots/SnapshotShutdownIT.java * import
* Ensure paused shard snapshot can be deleted (#141408) When a shard snapshot is paused due to node shutdown, the associated snapshot can be deleted before the shard snapshot transition to another state. When this happens, we ensure such shard snapshot is deleted directly without going back to the data node where it gets incorrectly ignored. (cherry picked from commit a2b9254) # Conflicts: # server/src/internalClusterTest/java/org/elasticsearch/snapshots/SnapshotShutdownIT.java * import
When a shard snapshot is paused due to node shutdown, the associated snapshot can be deleted before the shard snapshot transition to another state. When this happens, we ensure such shard snapshot is deleted directly without going back to the data node where it gets incorrectly ignored.