Skip to content

Commit

Permalink
fix 12897
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiang Haiting committed Nov 20, 2021
1 parent 1ade1ba commit a9e4a67
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -724,10 +724,12 @@ public void testReplicatorProducerName() throws Exception {
});
Optional<Topic> topic = pulsar2.getBrokerService().getTopicReference(topicName);
assertTrue(topic.isPresent());
Set<String> remoteClusters = topic.get().getProducers().values().stream()
.map(org.apache.pulsar.broker.service.Producer::getRemoteCluster)
.collect(Collectors.toSet());
assertTrue(remoteClusters.contains("r1"));
Awaitility.await().untilAsserted(() -> {
Set<String> remoteClusters = topic.get().getProducers().values().stream()
.map(org.apache.pulsar.broker.service.Producer::getRemoteCluster)
.collect(Collectors.toSet());
assertTrue(remoteClusters.contains("r1"));
});
}

/**
Expand Down

0 comments on commit a9e4a67

Please sign in to comment.