【已解决】zookeeper not connected
在使用dubbo的时候,有时候会突然出现【Zookeeper】zookeeper not connected。这是什么原因呢?怎么解决呢?
一、问题分析和代码跟踪
原来跑的好好的代码,晚上运行的时候提示连接不上 zookeeper。提示信息如下:

点开报错信息,跟踪进源码,发现异常的抛出是由于在等待连接返回时的返回值false

跟进方法,可以看到他在不
断循环等待连接成功,若在最大等待时间内连接上,则返回true,否则false
原创不易,完成人机校验,阅读全文
相关推荐
DUBBODubbo2.7.5连接zookeeper时报错: zookeeper not connected工作小总结Connected to the target VM, address: ‘127.0.0.1:62995‘, transport: ‘socket‘错误解决办法经验分享【已解决】javax.websocket.server.ServerContainer not availableZOOKEEPERWindos操作系统下的Zookeeper安装图文教程DOCKER【已解决】Failed to get D-Bus connection: Operation not permitted分布式相关【已解决】ShardingSphere 使用记录,ShardingException: Can not update sharding key, logic table: [user_log]解决经验分享【已解决】项目启动,报错:java.sql :Public Key Retrieval is not allowed工作小总结记一次dubbo连接zookeeper注册中心发生异常的排查经历