Closed tkec closed 2 years ago
与问题 https://github.com/apache/dubbo/issues/5474 类似 我也出现了,发现可能是 org.apache.zookeeper.zookeeper 版本导致的,将 zookeeper 版本修改成 3.4.10 后正常 centos 服务器部署的 zookeeper 尝试过 3.4.6 和 3.4.9 至于 zk 为什么会出现这个问题还没深究
这和zkserver和你的curator版本有关系,确定来说,使用curator更容易遭受这个问题。zkclient安全性更高,可惜已经被dubbo移除了
Try it with the latest version, if you still have problems, you can reopen the issue
Dubbo with SpringBoot registry to zk, get
zookeeper not connected
error, set registry timeout to60000
and then connect to zk success, the real connect time is about 30s, is the connect time normal in local? is the connect time normal if in production environment? How to reduce the time?Environment
Steps to reproduce this issue
o.a.c.f.imps.CuratorFrameworkImpl : Default schema
for about 30s.Pls. provide [GitHub address] to reproduce this issue.
Expected Result
connect success quickly
Actual Result
What actually happens?
connected success cost 30s+