Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ protected Collection<Class<? extends Plugin>> getMockPlugins() {
return Collections.unmodifiableList(plugins);
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/108613")
public void testReadinessDuringRestarts() throws Exception {
internalCluster().setBootstrapMasterNodeIndex(0);
writeFileSettings(testJSON);
Expand Down Expand Up @@ -258,7 +257,7 @@ public void testNotReadyOnBadFileSettings() throws Exception {

FileSettingsService masterFileSettingsService = internalCluster().getInstance(FileSettingsService.class, masterNode);

assertTrue(masterFileSettingsService.watching());
assertBusy(() -> assertTrue(masterFileSettingsService.watching()));
assertFalse(dataFileSettingsService.watching());

boolean awaitSuccessful = savedClusterState.await(20, TimeUnit.SECONDS);
Expand Down Expand Up @@ -315,7 +314,7 @@ public void testReadyWhenMissingFileSettings() throws Exception {

FileSettingsService masterFileSettingsService = internalCluster().getInstance(FileSettingsService.class, masterNode);

assertTrue(masterFileSettingsService.watching());
assertBusy(() -> assertTrue(masterFileSettingsService.watching()));

boolean awaitSuccessful = savedClusterState.v1().await(20, TimeUnit.SECONDS);
assertTrue(awaitSuccessful);
Expand Down Expand Up @@ -369,7 +368,7 @@ public void testReadyAfterCorrectFileSettings() throws Exception {

FileSettingsService masterFileSettingsService = internalCluster().getInstance(FileSettingsService.class, masterNode);

assertTrue(masterFileSettingsService.watching());
assertBusy(() -> assertTrue(masterFileSettingsService.watching()));
assertFalse(dataFileSettingsService.watching());

boolean awaitSuccessful = savedClusterState.v1().await(20, TimeUnit.SECONDS);
Expand Down