BewareMyPower commented on code in PR #20037:
URL: https://github.com/apache/pulsar/pull/20037#discussion_r1162281071
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java:
##########
@@ -1542,7 +1542,13 @@ public CompletableFuture<Void> checkReplication() {
continue;
}
if (!replicators.containsKey(cluster)) {
- futures.add(startReplicator(cluster));
+
futures.add(checkReplicationCluster(cluster).thenCompose(clusterExists -> {
Review Comment:
Yes, it's not related to the flaky test. I've reverted it and changed the PR
description. The tests could still pass after that.

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]