You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "XiaoJiuDYS (via GitHub)" <gi...@apache.org> on 2024/12/31 06:07:37 UTC
Re: [I] shutdown后报错:Expected state [STARTED] was [STOPPED] [dubbo]
XiaoJiuDYS commented on issue #10150:
URL: https://github.com/apache/dubbo/issues/10150#issuecomment-2566161687
> @chickenlj @AlbumenJ
>
> ```
> dubbo:3.3.2
> curator:5.7.1
> zookeeper-server:3.7.2
> ```
>
> In my env, change these code
>
> https://github.com/apache/dubbo/blob/3438707d452468e04ebadfccb7314cfedd389c32/dubbo-remoting/dubbo-remoting-zookeeper-curator5/src/main/java/org/apache/dubbo/remoting/zookeeper/curator5/Curator5ZookeeperClient.java#L340-L343
>
> to
>
> ```java
> public void doClose() {
> super.doClose();
> nodeCacheMap.forEach((path, nodeCache) -> CloseableUtils.closeQuietly(nodeCache));
> client.close();
> }
> ```
>
> can fix this problem. It looks like you need to close every NodeCache before close CuratorFramework.
Looks like the change was rejected.
--
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