Skip to content

Commit

Permalink
Fix Missing IgnoredUnavailable Flag in 7.x SLM Retention Task (#56616)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
original-brownbear authored May 12, 2020
1 parent 4240b97 commit c104c9a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ void getAllRetainableSnapshots(Collection<String> repositories, ActionListener<M
for (String repository : repositories) {
client.admin().cluster()
.prepareGetSnapshots(repository)
.setIgnoreUnavailable(true)
.execute(ActionListener.wrap(resp -> {
final Set<SnapshotState> retainableStates =
new HashSet<>(Arrays.asList(SnapshotState.SUCCESS, SnapshotState.FAILED, SnapshotState.PARTIAL));
Expand Down

0 comments on commit c104c9a

Please sign in to comment.