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:33:06 UTC

[GitHub] [dubbo] zrlw commented on issue #8993: [3.0] CuratorZookeeperClient zookeeper not connected的原因可能是前面已经结束的测试类没有关闭zkClient所致

zrlw commented on issue #8993:
URL: https://github.com/apache/dubbo/issues/8993#issuecomment-944886717


   跟踪调试代码发现即使dubbo创建一个CuratorZookeeperClient,但是发现有的UT会建两个session,最后只关了其中一个,导致zk服务关闭后另一个没有关闭的session不停地尝试重连,查了半天,才发现是ZookeeperServiceDiscovery自己另起炉灶搞了一套连接,但是destroy的时候并没有关闭。
   本来想把ZookeeperServiceDiscovery的zk连接改为ZookeeperTransporter统一搞,但是动手时发现ZookeeperServiceDiscovery自己不仅有自己一套的连接参数,还有自己的一套状态管理,改动起来伤筋动骨,还是等熟悉ZookeeperServiceDiscovery的commiter重构算了,我先给它的destroy方法补个zk连接关闭操作算了。
   #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