Skip to content

Commit 2e924e4

Browse files
Fix ClusterDisruptionIT.testAckedIndexing (#53169)
Use assertBusy when doing reroute after bridged disruption, since it can return non-acked if a node is marked faulty by follower check after disruption ended. Closes #53064
1 parent 6a5d919 commit 2e924e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/discovery/ClusterDisruptionIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public void testAckedIndexing() throws Exception {
227227
// is the super-connected node and recovery source and target are on opposite sides of the bridge
228228
if (disruptionScheme instanceof NetworkDisruption &&
229229
((NetworkDisruption) disruptionScheme).getDisruptedLinks() instanceof Bridge) {
230-
assertAcked(client().admin().cluster().prepareReroute().setRetryFailed(true));
230+
assertBusy(() -> assertAcked(client().admin().cluster().prepareReroute().setRetryFailed(true)));
231231
}
232232
ensureGreen("test");
233233

0 commit comments

Comments
 (0)