-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Open
Labels
:Data Management/ILM+SLMIndex and Snapshot lifecycle managementIndex and Snapshot lifecycle management>bugTeam:Data ManagementMeta label for data/management teamMeta label for data/management team
Description
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
| CleanupSnapshotStep cleanupSnapshotStep = new CleanupSnapshotStep(cleanSnapshotKey, deleteStepKey, client); | |
| DeleteStep deleteStep = new DeleteStep(deleteStepKey, nextStepKey, client); |
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.
Metadata
Metadata
Assignees
Labels
:Data Management/ILM+SLMIndex and Snapshot lifecycle managementIndex and Snapshot lifecycle management>bugTeam:Data ManagementMeta label for data/management teamMeta label for data/management team