Skip to content

Commit

Permalink
[fix][broker] Fix flaky test - testClusterMigrationWithReplica… (#20379)
Browse files Browse the repository at this point in the history
  • Loading branch information
vineeth1995 authored May 24, 2023
1 parent fd36fc1 commit aff4a1c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@ public void testClusterMigrationWithReplicationBacklog(boolean persistent, Subsc
retryStrategically((test) -> !topic1.isReplicationBacklogExist(), 10, 1000);
assertFalse(topic1.isReplicationBacklogExist());

// verify that the producer1 is now is now connected to migrated cluster "r2" since backlog is cleared.
retryStrategically((test) -> topic2.getProducers().size()==2, 10, 500);
producer1.send("test".getBytes());
// verify that the producer1 is now connected to migrated cluster "r2" since backlog is cleared.
assertEquals(topic2.getProducers().size(), 2);
}

Expand Down

0 comments on commit aff4a1c

Please sign in to comment.