Skip to content

Commit

Permalink
[pulsar-broker] Add stop replicator producer logic when start replica…
Browse files Browse the repository at this point in the history
…tor cluster failed. (apache#12724)
  • Loading branch information
Technoboy- authored Nov 11, 2021
1 parent a749a31 commit fc7cba4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ public PersistentTopic(String topic, ManagedLedger ledger, BrokerService brokerS
log.warn("[{}] failed to start replication", topic, e);
}
if (!isReplicatorStarted) {
stopReplProducers();
throw new NamingException(
PersistentTopic.this.getName() + " Failed to start replicator " + remoteCluster);
}
Expand Down

0 comments on commit fc7cba4

Please sign in to comment.