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)

(cherry picked from commit fc7cba4)
  • Loading branch information
Technoboy- authored and lhotari committed Dec 20, 2021
1 parent 3c40bc4 commit 85ddf12
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,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 85ddf12

Please sign in to comment.