You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/12/13 07:24:50 UTC

[dubbo] branch 3.1 updated: add more information when zk not connected (#11057) (#11122)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch 3.1
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.1 by this push:
     new d4cb807da3 add more information when zk not connected (#11057) (#11122)
d4cb807da3 is described below

commit d4cb807da3ab513ae9ec6b9b0e9c1015b4981189
Author: cnjxzhao <85...@users.noreply.github.com>
AuthorDate: Tue Dec 13 15:24:43 2022 +0800

    add more information when zk not connected (#11057) (#11122)
---
 .../dubbo/remoting/zookeeper/curator5/Curator5ZookeeperClient.java      | 2 +-
 .../apache/dubbo/remoting/zookeeper/curator/CuratorZookeeperClient.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dubbo-remoting/dubbo-remoting-zookeeper-curator5/src/main/java/org/apache/dubbo/remoting/zookeeper/curator5/Curator5ZookeeperClient.java b/dubbo-remoting/dubbo-remoting-zookeeper-curator5/src/main/java/org/apache/dubbo/remoting/zookeeper/curator5/Curator5ZookeeperClient.java
index 2f21daca88..028ebb6fe4 100644
--- a/dubbo-remoting/dubbo-remoting-zookeeper-curator5/src/main/java/org/apache/dubbo/remoting/zookeeper/curator5/Curator5ZookeeperClient.java
+++ b/dubbo-remoting/dubbo-remoting-zookeeper-curator5/src/main/java/org/apache/dubbo/remoting/zookeeper/curator5/Curator5ZookeeperClient.java
@@ -98,7 +98,7 @@ public class Curator5ZookeeperClient extends AbstractZookeeperClient<Curator5Zoo
             boolean connected = client.blockUntilConnected(timeout, TimeUnit.MILLISECONDS);
 
             if (!connected) {
-                IllegalStateException illegalStateException = new IllegalStateException("zookeeper not connected");
+                IllegalStateException illegalStateException = new IllegalStateException("zookeeper not connected, the address is: " + url);
 
                 // 5-1 Failed to connect to configuration center.
                 logger.error(CONFIG_FAILED_CONNECT_REGISTRY, "Zookeeper server offline", "",
diff --git a/dubbo-remoting/dubbo-remoting-zookeeper/src/main/java/org/apache/dubbo/remoting/zookeeper/curator/CuratorZookeeperClient.java b/dubbo-remoting/dubbo-remoting-zookeeper/src/main/java/org/apache/dubbo/remoting/zookeeper/curator/CuratorZookeeperClient.java
index 66bb9e8c8a..5935286219 100644
--- a/dubbo-remoting/dubbo-remoting-zookeeper/src/main/java/org/apache/dubbo/remoting/zookeeper/curator/CuratorZookeeperClient.java
+++ b/dubbo-remoting/dubbo-remoting-zookeeper/src/main/java/org/apache/dubbo/remoting/zookeeper/curator/CuratorZookeeperClient.java
@@ -102,7 +102,7 @@ public class CuratorZookeeperClient extends AbstractZookeeperClient<CuratorZooke
 
             boolean connected = client.blockUntilConnected(timeout, TimeUnit.MILLISECONDS);
             if (!connected) {
-                IllegalStateException illegalStateException = new IllegalStateException("zookeeper not connected");
+                IllegalStateException illegalStateException = new IllegalStateException("zookeeper not connected, the address is: " + url);
 
                 // 5-1 Failed to connect to configuration center.
                 logger.error(CONFIG_FAILED_CONNECT_REGISTRY, "Zookeeper server offline", "",