Skip to content

Commit

Permalink
[CI] FileSettingsServiceIT testErrorCanRecoverOnRestart failing (elas…
Browse files Browse the repository at this point in the history
…tic#116895) (elastic#117511)

Fixes flaky test FileSettingsServiceIT.testErrorCanRecoverOnRestart
Fixes elastic#116895
  • Loading branch information
alexey-ivanov-es authored Nov 26, 2024
1 parent a245e70 commit 5e16bc3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public void testErrorCanRecoverOnRestart() throws Exception {

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

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

writeJSONFile(masterNode, testErrorJSON, logger, versionCounter.incrementAndGet());
Expand Down Expand Up @@ -434,7 +434,7 @@ public void testNewErrorOnRestartReprocessing() throws Exception {

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

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

writeJSONFile(masterNode, testErrorJSON, logger, versionCounter.incrementAndGet());
Expand Down

0 comments on commit 5e16bc3

Please sign in to comment.