You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2022/11/27 14:21:17 UTC

[iotdb] branch master updated: Try to fix query performance (#8208)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new d3d2cf9950 Try to fix query performance (#8208)
d3d2cf9950 is described below

commit d3d2cf9950b3474b7e9ba5a6de4f29466034bbf8
Author: Jackie Tien <ja...@gmail.com>
AuthorDate: Sun Nov 27 22:21:10 2022 +0800

    Try to fix query performance (#8208)
---
 .../main/java/org/apache/iotdb/db/client/ConfigNodeClient.java    | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/client/ConfigNodeClient.java b/server/src/main/java/org/apache/iotdb/db/client/ConfigNodeClient.java
index a8c0aeecf3..a569857df9 100644
--- a/server/src/main/java/org/apache/iotdb/db/client/ConfigNodeClient.java
+++ b/server/src/main/java/org/apache/iotdb/db/client/ConfigNodeClient.java
@@ -183,7 +183,13 @@ public class ConfigNodeClient
   }
 
   public void init() throws TException {
-    waitAndReconnect();
+    try {
+      tryToConnect();
+    } catch (TException e) {
+      // can not connect to each config node
+      syncLatestConfigNodeList();
+      tryToConnect();
+    }
   }
 
   public void connect(TEndPoint endpoint) throws TException {