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


##########
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:
   Perhaps half of confignode's ratis election time is reasonable



-- 
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