You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/10/17 00:44:24 UTC

[GitHub] [dubbo] zrlw edited a comment on issue #9014: 注册管理getRegistries获取的Registry没有去重;以及application共享zookeeper client导致destroy抛异常

zrlw edited a comment on issue #9014:
URL: https://github.com/apache/dubbo/issues/9014#issuecomment-939630669


   应用同时作为provider和consumer时也有问题,比如DubboBootstrapMultiInstanceTest的testMultiModuleDeployAndReload测试方法最后providerBootstrap.destroy()解注册一次,consumerBootstrap.destroy()又解注册时就会抛异常,这个问题只改HashSet类型没有用,因为provider和consumer分别有一个RegistryManager,但是它们共享了一个zkClient,一个destroy了就直接把zkClient给关了,另一个unregistry就异常了。
   需要打个补丁,没application继续使用时才能关闭,试着改了一下,见  #9015 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org