This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new 93d6a08 remove notified item when unsubscribe(#6790)
93d6a08 is described below
commit 93d6a08adb8f0660d2f373ca393259da90d32a0a
Author: yizhenqiang <[email protected]>
AuthorDate: Mon Oct 5 16:44:28 2020 +0800
remove notified item when unsubscribe(#6790)
fix #6676
---
.../main/java/org/apache/dubbo/registry/support/AbstractRegistry.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/AbstractRegistry.java
b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/AbstractRegistry.java
index efcd7e9..e680793 100644
---
a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/AbstractRegistry.java
+++
b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/AbstractRegistry.java
@@ -331,6 +331,9 @@ public abstract class AbstractRegistry implements Registry {
if (listeners != null) {
listeners.remove(listener);
}
+
+ // do not forget remove notified
+ notified.remove(url);
}
protected void recover() throws Exception {