apache / apache/dubbo-website

dubbo 优雅停机 报错。o.a.c.framework.recipes.cache.NodeCache Expected state [STARTED] was [STOPPED]

Open
#2,892 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
491
Forks
809
Avg merge
1d 6h
Merged PRs (30d)
6

Description

环境配置 :
dubbo 3.2.10
curator 5.4.0
zk 3.5.10
------------------------
2024-01-07 13:31:50.435 ERROR 9785 --- [ain-EventThread] o.a.c.framework.recipes.cache.NodeCache :

java.lang.IllegalStateException: Expected state [STARTED] was [STOPPED]
at org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:821) ~[curator-client-5.4.0.jar!/:5.4.0]
at org.apache.curator.framework.imps.CuratorFrameworkImpl.checkState(CuratorFrameworkImpl.java:457) ~[curator-framework-5.4.0.jar!/:5.4.0]
at org.apache.curator.framework.imps.CuratorFrameworkImpl.checkExists(CuratorFrameworkImpl.java:484) ~[curator-framework-5.4.0.jar!/:5.4.0]
at org.apache.curator.framework.recipes.cache.NodeCache.reset(NodeCache.java:261) ~[curator-recipes-5.4.0.jar!/:5.4.0]
at org.apache.curator.framework.recipes.cache.NodeCache.access$100(NodeCache.java:60) ~[curator-recipes-5.4.0.jar!/:5.4.0]
at org.apache.curator.framework.recipes.cache.NodeCache$2.process(NodeCache.java:104) ~[curator-recipes-5.4.0.jar!/:5.4.0]
at org.apache.curator.framework.imps.NamespaceWatcher.process(NamespaceWatcher.java:77) ~[curator-framework-5.4.0.jar!/:5.4.0]
at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:532) ~[zookeeper-3.5.10.jar!/:3.5.10]
at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:507) ~[zookeeper-3.5.10.jar!/:3.5.10]

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing graceful shutdown with Dubbo 3.2.10, Curator 5.4.0, and ZooKeeper 3.5.10, then trace the NodeCache.reset and CuratorFrameworkImpl.checkState calls shown in the stack trace. Done means the shutdown no longer emits the reported STOPPED-state error, with the behavior verified against a focused reproduction or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.