ILM delete phase deletes searchable snapshot before index #116801
Labels
>bug
:Data Management/ILM+SLM
Index and Snapshot lifecycle management
Team:Data Management
Meta label for data/management team
When ILM deletes a searchable snapshot index, it deletes the snapshot first, waits for that to complete, and then deletes the index. This means that there's a period of time when the index still exists but attempts to search it may fail with a
org.elasticsearch.snapshots.SnapshotMissingException
.elasticsearch/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/DeleteAction.java
Lines 100 to 101 in f32c8f5
We should delete the index first, and only delete the snapshot once the index deletion is complete.
Relates #116379 which can prevent the snapshot deletion from completing properly, leaving the index in a broken state for a long time.
The text was updated successfully, but these errors were encountered: