This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new 4b3dfef ZookeeperServiceDiscovery curator client support multi
address. (#7285)
4b3dfef is described below
commit 4b3dfeff0ea6c845ae77500e8e0e950335fe8dbb
Author: 赵延 <[email protected]>
AuthorDate: Thu May 6 11:02:17 2021 +0800
ZookeeperServiceDiscovery curator client support multi address. (#7285)
---
.../org/apache/dubbo/registry/zookeeper/util/CuratorFrameworkUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dubbo-registry/dubbo-registry-zookeeper/src/main/java/org/apache/dubbo/registry/zookeeper/util/CuratorFrameworkUtils.java
b/dubbo-registry/dubbo-registry-zookeeper/src/main/java/org/apache/dubbo/registry/zookeeper/util/CuratorFrameworkUtils.java
index 3bbf43e..cfd3831 100644
---
a/dubbo-registry/dubbo-registry-zookeeper/src/main/java/org/apache/dubbo/registry/zookeeper/util/CuratorFrameworkUtils.java
+++
b/dubbo-registry/dubbo-registry-zookeeper/src/main/java/org/apache/dubbo/registry/zookeeper/util/CuratorFrameworkUtils.java
@@ -58,7 +58,7 @@ public abstract class CuratorFrameworkUtils {
public static CuratorFramework buildCuratorFramework(URL connectionURL)
throws Exception {
CuratorFramework curatorFramework = CuratorFrameworkFactory.builder()
- .connectString(connectionURL.getIp() + ":" +
connectionURL.getPort())
+ .connectString(connectionURL.getBackupAddress())
.retryPolicy(buildRetryPolicy(connectionURL))
.build();
curatorFramework.start();