From a92c2e8eb1d7d9e677d8842f1b19a40e5b5a670d Mon Sep 17 00:00:00 2001 From: lizhen Date: Wed, 28 Aug 2019 18:06:43 +0800 Subject: [PATCH] add timeout config to zookeeper client --- .../remoting/zookeeper/curator/CuratorZookeeperClient.java | 4 +++- .../remoting/zookeeper/zkclient/ZkclientZookeeperClient.java | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dubbo-remoting/dubbo-remoting-zookeeper/src/main/java/com/alibaba/dubbo/remoting/zookeeper/curator/CuratorZookeeperClient.java b/dubbo-remoting/dubbo-remoting-zookeeper/src/main/java/com/alibaba/dubbo/remoting/zookeeper/curator/CuratorZookeeperClient.java index a08edc9a2be..8f3df7e0284 100644 --- a/dubbo-remoting/dubbo-remoting-zookeeper/src/main/java/com/alibaba/dubbo/remoting/zookeeper/curator/CuratorZookeeperClient.java +++ b/dubbo-remoting/dubbo-remoting-zookeeper/src/main/java/com/alibaba/dubbo/remoting/zookeeper/curator/CuratorZookeeperClient.java @@ -16,6 +16,7 @@ */ package com.alibaba.dubbo.remoting.zookeeper.curator; +import com.alibaba.dubbo.common.Constants; import com.alibaba.dubbo.common.URL; import com.alibaba.dubbo.common.utils.StringUtils; import com.alibaba.dubbo.remoting.zookeeper.ChildListener; @@ -43,10 +44,11 @@ public class CuratorZookeeperClient extends AbstractZookeeperClient 0) { builder = builder.authorization("digest", authority.getBytes()); diff --git a/dubbo-remoting/dubbo-remoting-zookeeper/src/main/java/com/alibaba/dubbo/remoting/zookeeper/zkclient/ZkclientZookeeperClient.java b/dubbo-remoting/dubbo-remoting-zookeeper/src/main/java/com/alibaba/dubbo/remoting/zookeeper/zkclient/ZkclientZookeeperClient.java index a27aab611ca..82900f8317c 100644 --- a/dubbo-remoting/dubbo-remoting-zookeeper/src/main/java/com/alibaba/dubbo/remoting/zookeeper/zkclient/ZkclientZookeeperClient.java +++ b/dubbo-remoting/dubbo-remoting-zookeeper/src/main/java/com/alibaba/dubbo/remoting/zookeeper/zkclient/ZkclientZookeeperClient.java @@ -16,11 +16,11 @@ */ package com.alibaba.dubbo.remoting.zookeeper.zkclient; +import com.alibaba.dubbo.common.Constants; import com.alibaba.dubbo.common.URL; import com.alibaba.dubbo.remoting.zookeeper.ChildListener; import com.alibaba.dubbo.remoting.zookeeper.StateListener; import com.alibaba.dubbo.remoting.zookeeper.support.AbstractZookeeperClient; - import org.I0Itec.zkclient.IZkChildListener; import org.I0Itec.zkclient.IZkStateListener; import org.I0Itec.zkclient.exception.ZkNoNodeException; @@ -37,7 +37,8 @@ public class ZkclientZookeeperClient extends AbstractZookeeperClient