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:13 UTC

[iotdb] branch QueryPerformanceFix created (now 8647fd40a3)

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

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


      at 8647fd40a3 Try to fix query performance

This branch includes the following new commits:

     new 8647fd40a3 Try to fix query performance

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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

Posted by ja...@apache.org.
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 {