Skip to content

Commit

Permalink
[fix][test] Fix flaky test OneWayReplicatorUsingGlobalZKTest.testConf…
Browse files Browse the repository at this point in the history
…igReplicationStartAt (#24011)

(cherry picked from commit 8b196d8)
  • Loading branch information
poorbarcode authored and lhotari committed Feb 25, 2025
1 parent d0e95db commit c05e998
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ public void testConfigReplicationStartAt() throws Exception {
p1.close();

admin1.namespaces().setNamespaceReplicationClusters(ns1, new HashSet<>(Arrays.asList(cluster1, cluster2)));
Awaitility.await().untilAsserted(() -> {
assertTrue(admin2.topics().getList(ns1).contains(topic1));
});
admin2.topics().createSubscription(topic1, subscription1, MessageId.earliest);
org.apache.pulsar.client.api.Consumer<String> c1 = client2.newConsumer(Schema.STRING).topic(topic1)
.subscriptionName(subscription1).subscribe();
Message<String> msg2 = c1.receive(2, TimeUnit.SECONDS);
Expand Down

0 comments on commit c05e998

Please sign in to comment.