You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2023/06/27 11:48:52 UTC

[shardingsphere] branch master updated: Revert something (#26632)

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

zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 9c7b7a8ebe3 Revert something (#26632)
9c7b7a8ebe3 is described below

commit 9c7b7a8ebe3123fa55a8a6c4d4639543b32df461
Author: zhaojinchao <zh...@apache.org>
AuthorDate: Tue Jun 27 19:48:42 2023 +0800

    Revert something (#26632)
---
 .../cluster/zookeeper/ZookeeperRepository.java     |  1 -
 .../bootstrap/src/main/resources/conf/server.yaml  | 40 +++++++++++-----------
 2 files changed, 20 insertions(+), 21 deletions(-)

diff --git a/mode/type/cluster/repository/provider/zookeeper/src/main/java/org/apache/shardingsphere/mode/repository/cluster/zookeeper/ZookeeperRepository.java b/mode/type/cluster/repository/provider/zookeeper/src/main/java/org/apache/shardingsphere/mode/repository/cluster/zookeeper/ZookeeperRepository.java
index 52dc8923b51..44845d3f89a 100644
--- a/mode/type/cluster/repository/provider/zookeeper/src/main/java/org/apache/shardingsphere/mode/repository/cluster/zookeeper/ZookeeperRepository.java
+++ b/mode/type/cluster/repository/provider/zookeeper/src/main/java/org/apache/shardingsphere/mode/repository/cluster/zookeeper/ZookeeperRepository.java
@@ -243,7 +243,6 @@ public final class ZookeeperRepository implements ClusterPersistRepository, Inst
                 .forTreeCache(client, (framework, treeCacheListener) -> {
                     Type changedType = getChangedType(treeCacheListener.getType());
                     if (Type.IGNORED != changedType) {
-                        System.out.println("watch path is :" + treeCacheListener.getData().getPath());
                         listener.onChange(new DataChangedEvent(treeCacheListener.getData().getPath(),
                                 new String(treeCacheListener.getData().getData(), StandardCharsets.UTF_8), changedType));
                     }
diff --git a/proxy/bootstrap/src/main/resources/conf/server.yaml b/proxy/bootstrap/src/main/resources/conf/server.yaml
index 9b235cabc21..9b0c5cd34f3 100644
--- a/proxy/bootstrap/src/main/resources/conf/server.yaml
+++ b/proxy/bootstrap/src/main/resources/conf/server.yaml
@@ -21,26 +21,26 @@
 # 
 ######################################################################################################
 
-mode:
-  type: Cluster
-  repository:
-    type: ZooKeeper
-    props:
-      namespace: governance_ds
-      server-lists: localhost:2181
-      retryIntervalMilliseconds: 500
-      timeToLiveSeconds: 60
-      maxRetries: 3
-      operationTimeoutMilliseconds: 500
-
-authority:
-  users:
-    - user: root@%
-      password: root
-    - user: sharding
-      password: sharding
-  privilege:
-    type: ALL_PERMITTED
+#mode:
+#  type: Cluster
+#  repository:
+#    type: ZooKeeper
+#    props:
+#      namespace: governance_ds
+#      server-lists: localhost:2181
+#      retryIntervalMilliseconds: 500
+#      timeToLiveSeconds: 60
+#      maxRetries: 3
+#      operationTimeoutMilliseconds: 500
+#
+#authority:
+#  users:
+#    - user: root@%
+#      password: root
+#    - user: sharding
+#      password: sharding
+#  privilege:
+#    type: ALL_PERMITTED
 #
 #transaction:
 #  defaultType: XA