You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/07/28 02:46:07 UTC

[GitHub] [iotdb] imquanke commented on a diff in pull request #6805: [IOTDB-3900] start-confignode ,Failed to execute system command

imquanke commented on code in PR #6805:
URL: https://github.com/apache/iotdb/pull/6805#discussion_r931733566


##########
confignode/src/main/java/org/apache/iotdb/confignode/client/sync/confignode/SyncConfigNodeClientPool.java:
##########
@@ -104,6 +104,11 @@ public Object sendSyncRequestToConfigNodeWithRetry(
       }
     }
     LOGGER.error("{} failed on ConfigNode {}", requestType, endPoint, lastException);
+    if (requestType == ConfigNodeRequestType.REGISTER_CONFIG_NODE) {
+      return new TConfigNodeRegisterResp(
+          new TSStatus(TSStatusCode.ALL_RETRY_FAILED.getStatusCode())
+              .setMessage("All retry failed due to" + lastException.getMessage()));
+    }
     return new TSStatus(TSStatusCode.ALL_RETRY_FAILED.getStatusCode())
         .setMessage("All retry failed due to" + lastException.getMessage());

Review Comment:
   done



-- 
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: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org