You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2024/04/22 03:02:16 UTC
(servicecomb-java-chassis) branch master updated: [SCB-2873]Fix zookeeper default address is not correct (#4304)
This is an automated email from the ASF dual-hosted git repository.
liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git
The following commit(s) were added to refs/heads/master by this push:
new 4f27591e3 [SCB-2873]Fix zookeeper default address is not correct (#4304)
4f27591e3 is described below
commit 4f27591e3fe78f68dd964a16ab636f588a5cdce4
Author: liubao68 <bi...@qq.com>
AuthorDate: Mon Apr 22 11:02:10 2024 +0800
[SCB-2873]Fix zookeeper default address is not correct (#4304)
---
.../java/org/apache/servicecomb/config/zookeeper/ZookeeperConfig.java | 2 +-
.../servicecomb/registry/zookeeper/ZookeeperRegistryProperties.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dynamic-config/config-zookeeper/src/main/java/org/apache/servicecomb/config/zookeeper/ZookeeperConfig.java b/dynamic-config/config-zookeeper/src/main/java/org/apache/servicecomb/config/zookeeper/ZookeeperConfig.java
index 074939c58..a1a86bc8e 100644
--- a/dynamic-config/config-zookeeper/src/main/java/org/apache/servicecomb/config/zookeeper/ZookeeperConfig.java
+++ b/dynamic-config/config-zookeeper/src/main/java/org/apache/servicecomb/config/zookeeper/ZookeeperConfig.java
@@ -38,7 +38,7 @@ public class ZookeeperConfig {
}
public String getConnectString() {
- return environment.getProperty(PROPERTY_CONNECT_STRING);
+ return environment.getProperty(PROPERTY_CONNECT_STRING, "127.0.0.1:2181");
}
public int getSessionTimeoutMillis() {
diff --git a/service-registry/registry-zookeeper/src/main/java/org/apache/servicecomb/registry/zookeeper/ZookeeperRegistryProperties.java b/service-registry/registry-zookeeper/src/main/java/org/apache/servicecomb/registry/zookeeper/ZookeeperRegistryProperties.java
index cea946d99..0f74278fb 100644
--- a/service-registry/registry-zookeeper/src/main/java/org/apache/servicecomb/registry/zookeeper/ZookeeperRegistryProperties.java
+++ b/service-registry/registry-zookeeper/src/main/java/org/apache/servicecomb/registry/zookeeper/ZookeeperRegistryProperties.java
@@ -21,7 +21,7 @@ public class ZookeeperRegistryProperties {
private boolean ephemeral = true;
- private String connectString = "zookeeper://127.0.0.1:2181";
+ private String connectString = "127.0.0.1:2181";
private String authenticationSchema;