You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by te...@apache.org on 2023/09/25 13:10:00 UTC
[pulsar] branch branch-2.11 updated: [fix][broker] replicator leak when removeReplicator in NonPersistentTopic (#21205)
This is an automated email from the ASF dual-hosted git repository.
technoboy pushed a commit to branch branch-2.11
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.11 by this push:
new b877344db2a [fix][broker] replicator leak when removeReplicator in NonPersistentTopic (#21205)
b877344db2a is described below
commit b877344db2ab7e6c131edaa704a72ea3e10226bc
Author: hanmz <gu...@tencent.com>
AuthorDate: Thu Sep 21 10:04:41 2023 +0800
[fix][broker] replicator leak when removeReplicator in NonPersistentTopic (#21205)
---
.../apache/pulsar/broker/service/nonpersistent/NonPersistentTopic.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/nonpersistent/NonPersistentTopic.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/nonpersistent/NonPersistentTopic.java
index 2b028f5fc91..80cb828feff 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/nonpersistent/NonPersistentTopic.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/nonpersistent/NonPersistentTopic.java
@@ -607,6 +607,7 @@ public class NonPersistentTopic extends AbstractTopic implements Topic, TopicPol
replicators.get(remoteCluster).disconnect().thenRun(() -> {
log.info("[{}] Successfully removed replicator {}", name, remoteCluster);
+ replicators.remove(remoteCluster);
}).exceptionally(e -> {
log.error("[{}] Failed to close replication producer {} {}", topic, name, e.getMessage(), e);