Fix ILMDownsampleDisruptionIT.testILMDownsampleRollingRestart (#126692)

Wait for the index to exist on the master node to ensure all nodes have
the latest cluster state.

Fixes #126495
This commit is contained in:
Niels Bauman 2025-04-11 17:45:45 +02:00 committed by GitHub
parent 856323594d
commit 507f40cd72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 10 deletions

View file

@ -192,8 +192,8 @@ public class ILMDownsampleDisruptionIT extends ESIntegTestCase {
throw new AssertionError(e);
}
}, 1, TimeUnit.MINUTES);
awaitIndexExists(targetIndex, TimeValue.timeValueSeconds(60));
assertBusy(() -> {
assertTrue("target index [" + targetIndex + "] does not exist", indexExists(targetIndex));
var getSettingsResponse = client().admin()
.indices()
.getSettings(new GetSettingsRequest(TEST_REQUEST_TIMEOUT).indices(targetIndex))