liyuheng55555 commented on code in PR #13236:
URL: https://github.com/apache/iotdb/pull/13236#discussion_r1722803410


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/client/ConfigNodeClient.java:
##########
@@ -374,6 +376,22 @@ private <T> T executeRemoteCallWithRetry(final 
Operation<T> call, final Predicat
         logger.warn(message, e);
         configLeader = null;
       }
+
+      // If we have detected all configNodes and still not return
+      if (detectedNodeNum >= configNodes.size()) {
+        // Clear count
+        detectedNodeNum = 0;
+        // Wait to start the next try
+        try {
+          Thread.sleep(RETRY_INTERVAL_MS);

Review Comment:
   If there are 3 ConfigNodes, then the sleep time will be 10➗3 = 3. Maybe 3 
seconds sleep is too short?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to