From b0a742070f8a35e4a6db97566b012acfecf23243 Mon Sep 17 00:00:00 2001 From: Armin Braun Date: Tue, 12 May 2020 17:15:35 +0200 Subject: [PATCH] Fix Missing IgnoredUnavailable Flag in 7.x SLM Retention Task Without the flag we run into the situation where a broken repository (broken by some old 6.x version of ES that is missing some snap-${uuid}.dat blobs fails to run the SLM retention task since it always errors out). --- .../java/org/elasticsearch/xpack/slm/SnapshotRetentionTask.java | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/slm/SnapshotRetentionTask.java b/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/slm/SnapshotRetentionTask.java index 52fba7eaf6aac..283e121cb5300 100644 --- a/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/slm/SnapshotRetentionTask.java +++ b/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/slm/SnapshotRetentionTask.java @@ -270,6 +270,7 @@ void getAllRetainableSnapshots(Collection repositories, ActionListener { final Set retainableStates = new HashSet<>(Arrays.asList(SnapshotState.SUCCESS, SnapshotState.FAILED, SnapshotState.PARTIAL));