From fcb1ca6ace7e317fc8c7d58768ceab723c7ba47d Mon Sep 17 00:00:00 2001 From: bohr Date: Thu, 26 Sep 2013 15:58:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89ZookeeperRegistry=20=E4=B8=AD?= =?UTF-8?q?=E5=AF=B9zkclient=E7=9A=84=E6=98=BE=E7=A4=BA=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../alibaba/dubbo/registry/zookeeper/ZookeeperRegistry.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dubbo-registry/dubbo-registry-zookeeper/src/main/java/com/alibaba/dubbo/registry/zookeeper/ZookeeperRegistry.java b/dubbo-registry/dubbo-registry-zookeeper/src/main/java/com/alibaba/dubbo/registry/zookeeper/ZookeeperRegistry.java index 2c13a761ab4..3f62da20805 100644 --- a/dubbo-registry/dubbo-registry-zookeeper/src/main/java/com/alibaba/dubbo/registry/zookeeper/ZookeeperRegistry.java +++ b/dubbo-registry/dubbo-registry-zookeeper/src/main/java/com/alibaba/dubbo/registry/zookeeper/ZookeeperRegistry.java @@ -21,8 +21,6 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; -import org.I0Itec.zkclient.exception.ZkNoNodeException; - import com.alibaba.dubbo.common.Constants; import com.alibaba.dubbo.common.URL; import com.alibaba.dubbo.common.logger.Logger; @@ -193,14 +191,10 @@ public List lookup(URL url) { try { List providers = new ArrayList(); for (String path : toCategoriesPath(url)) { - try { List children = zkClient.getChildren(path); if (children != null) { providers.addAll(children); } - } catch (ZkNoNodeException e) { - // ignore - } } return toUrlsWithoutEmpty(url, providers); } catch (Throwable e) {