Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zookeeper session 过期问题如何解决 #78

Closed
ewang35 opened this issue Apr 25, 2019 · 2 comments
Closed

zookeeper session 过期问题如何解决 #78

ewang35 opened this issue Apr 25, 2019 · 2 comments

Comments

@ewang35
Copy link

ewang35 commented Apr 25, 2019

com.xxl.conf.core.exception.XxlConfException: org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /xxl-conf/prod/service-gateway.zuul.router
at com.xxl.conf.core.util.XxlZkClient.getPathData(XxlZkClient.java:254)
at com.xxl.conf.core.core.XxlConfZkConf.get(XxlConfZkConf.java:129)
at com.xxl.conf.core.core.XxlConfLocalCacheConf.reloadAll(XxlConfLocalCacheConf.java:125)
at com.xxl.conf.core.core.XxlConfLocalCacheConf$1.run(XxlConfLocalCacheConf.java:56)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /xxl-conf/prod/service-gateway.zuul.router
at org.apache.zookeeper.KeeperException.create(KeeperException.java:130)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:54)
at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1105)
at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1133)
at com.xxl.conf.core.util.XxlZkClient.getPathData(XxlZkClient.java:242)
... 4 common frames omitted

@xuxueli
Copy link
Owner

xuxueli commented Apr 27, 2019

你好,session过期将会自动重连,并且会主动对比同步重连期间的变动配置数据。

高版本已经移除了zookeper依赖,改为更轻量级、开销更小的实现方式,建议升级体验。

@baojiange
Copy link

升级为1.6.2版本也会出现此问题

@xuxueli xuxueli closed this as completed Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants