SNAPSHOT+TESTS: Stabilize SnapshotDisruptionIT (#37289)
* Ensure retry by busy assert on SnapshotMissingException * Closes #36739
This commit is contained in:
parent
44acb016a6
commit
26cb7466ef
|
@ -75,7 +75,6 @@ public class SnapshotDisruptionIT extends ESIntegTestCase {
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/36779")
|
|
||||||
public void testDisruptionOnSnapshotInitialization() throws Exception {
|
public void testDisruptionOnSnapshotInitialization() throws Exception {
|
||||||
final String idxName = "test";
|
final String idxName = "test";
|
||||||
final List<String> allMasterEligibleNodes = internalCluster().startMasterOnlyNodes(3);
|
final List<String> allMasterEligibleNodes = internalCluster().startMasterOnlyNodes(3);
|
||||||
|
@ -180,7 +179,11 @@ public class SnapshotDisruptionIT extends ESIntegTestCase {
|
||||||
|
|
||||||
logger.info("--> verify that snapshot eventually will be created due to retries");
|
logger.info("--> verify that snapshot eventually will be created due to retries");
|
||||||
assertBusy(() -> {
|
assertBusy(() -> {
|
||||||
|
try {
|
||||||
assertSnapshotExists("test-repo", "test-snap-2");
|
assertSnapshotExists("test-repo", "test-snap-2");
|
||||||
|
} catch (SnapshotMissingException ex) {
|
||||||
|
throw new AssertionError(ex);
|
||||||
|
}
|
||||||
}, 1, TimeUnit.MINUTES);
|
}, 1, TimeUnit.MINUTES);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue