You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Delete zk node when invoke ReferenceConfig.destory() which consumer uses ZookeeperRegistry.
2. Remove ConcurrentMap<NotifyListener, ChildListener> in zkListeners if the map is empty(release the memory).
程序中需要显示的调用ReferenceConfig.destory()销毁consumer时,其对应的ChildListener并没有被删除,通过分析代码发现 zkClient.removeChildListener(toUrlPath(url), zkListener)导致。
原因是因为:toUrlPath(url) 返回的内容和订阅时注册的url不一致。
订阅时监听的url分别为 :
.../XXXSERVICE/providers;
.../XXXSERVICE/configurators;
.../XXXSERVICE/routers;
而取消订阅时URL为:
.../XXXService?application=xxx&category=providers,configurators,routers
故进而导致销毁的consumer并不会清除对应的ChildListener;
The text was updated successfully, but these errors were encountered: