CodisLabs / jodis

A java client for codis based on Jedis and Curator
MIT License
217 stars 97 forks source link

org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss #19

Closed lvfoxx closed 7 years ago

lvfoxx commented 8 years ago

客户端连接Codis时报错。 JedisResourcePool jedispool= RoundRobinJedisPool.create().curatorClient("124.202.133.28:2181", 30000).zkProxyDir("/zk/codis/db_test/proxy").build(); 异常信息 org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss at org.apache.curator.ConnectionState.checkTimeouts(ConnectionState.java:195) at org.apache.curator.ConnectionState.getZooKeeper(ConnectionState.java:87) at org.apache.curator.CuratorZookeeperClient.getZooKeeper(CuratorZookeeperClient.java:115) at org.apache.curator.framework.imps.CuratorFrameworkImpl.getZooKeeper(CuratorFrameworkImpl.java:487) at org.apache.curator.framework.imps.ExistsBuilderImpl$2.call(ExistsBuilderImpl.java:192) at org.apache.curator.framework.imps.ExistsBuilderImpl$2.call(ExistsBuilderImpl.java:186) at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:107) at org.apache.curator.framework.imps.ExistsBuilderImpl.pathInForeground(ExistsBuilderImpl.java:183) at org.apache.curator.framework.imps.ExistsBuilderImpl.forPath(ExistsBuilderImpl.java:168) at org.apache.curator.framework.imps.ExistsBuilderImpl.forPath(ExistsBuilderImpl.java:39) at org.apache.curator.framework.imps.CuratorFrameworkImpl.createContainers(CuratorFrameworkImpl.java:193) at org.apache.curator.framework.recipes.cache.PathChildrenCache.ensurePath(PathChildrenCache.java:616) at org.apache.curator.framework.recipes.cache.PathChildrenCache.rebuild(PathChildrenCache.java:322) at org.apache.curator.framework.recipes.cache.PathChildrenCache.start(PathChildrenCache.java:299) at com.wandoulabs.jodis.RoundRobinJedisPool.(RoundRobinJedisPool.java:239) at com.wandoulabs.jodis.RoundRobinJedisPool.(RoundRobinJedisPool.java:64) at com.wandoulabs.jodis.RoundRobinJedisPool$Builder.build(RoundRobinJedisPool.java:479) at redistool.main.RedisTool.main(RedisTool.java:201)