Skip to content

Commit b135477

Browse files
Fix ClusterDisruptionIT.testAckedIndexing
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 elastic#53064
1 parent 56058ab commit b135477

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
@@ -228,7 +228,7 @@ public void testAckedIndexing() throws Exception {
228228
// is the super-connected node and recovery source and target are on opposite sides of the bridge
229229
if (disruptionScheme instanceof NetworkDisruption &&
230230
((NetworkDisruption) disruptionScheme).getDisruptedLinks() instanceof Bridge) {
231-
assertAcked(client().admin().cluster().prepareReroute().setRetryFailed(true));
231+
assertBusy(() -> assertAcked(client().admin().cluster().prepareReroute().setRetryFailed(true)));
232232
}
233233
ensureGreen("test");
234234

0 commit comments

Comments
 (0)