Skip to content

Commit

Permalink
Fix ConcurrentSnapshotsIT.testMasterFailoverDuringStaleIndicesCleanup
Browse files Browse the repository at this point in the history
As a result of elastic#86514 we now
remove the snapshot delete from the cluster state before cleaning up
stale shard level blobs so we have to block master earlier on deleting the
root level index-N blob to get the desired cluster state where delete
and snapshot creation are both in the cluster state at the same time.

closes elastic#88061
  • Loading branch information
original-brownbear committed Jun 27, 2022
1 parent 5056b66 commit 1cf387a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ public void testMasterFailoverDuringStaleIndicesCleanup() throws Exception {

final List<String> fullSnapshotsToDelete = createNSnapshots(repoName, randomIntBetween(1, 5));
final String masterName = internalCluster().getMasterName();
blockMasterOnAnyDataFile(repoName);
blockMasterFromDeletingIndexNFile(repoName);
final ActionFuture<AcknowledgedResponse> deleteAllSnapshotsWithIndex = startDeleteSnapshots(
repoName,
fullSnapshotsToDelete,
Expand Down

0 comments on commit 1cf387a

Please sign in to comment.