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

[iotdb] 01/01: Try to fix query performance

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

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

commit 8647fd40a38936023c3b83e0b4df8bdfdd3a9984
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Sun Nov 27 21:23:01 2022 +0800

    Try to fix query performance
---
 .../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 {