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 52fba7eaf6a..283e121cb53 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 @@ public class SnapshotRetentionTask implements SchedulerEngine.Listener { for (String repository : repositories) { client.admin().cluster() .prepareGetSnapshots(repository) + .setIgnoreUnavailable(true) .execute(ActionListener.wrap(resp -> { final Set retainableStates = new HashSet<>(Arrays.asList(SnapshotState.SUCCESS, SnapshotState.FAILED, SnapshotState.PARTIAL));