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/12/18 09:26:53 UTC

[GitHub] [iotdb] CRZbulabula commented on a diff in pull request #8481: [IOTDB-5205] Construct Cluster Node startup protocol

CRZbulabula commented on code in PR #8481:
URL: https://github.com/apache/iotdb/pull/8481#discussion_r1051561468


##########
confignode/src/main/java/org/apache/iotdb/confignode/service/ConfigNode.java:
##########
@@ -94,12 +97,21 @@ public void active() {
       /* Restart */
       if (SystemPropertiesUtils.isRestarted()) {
         LOGGER.info("{} is in restarting process...", ConfigNodeConstant.GLOBAL_NAME);
-        /* Always set ConfigNodeId before initConsensusManager */
+
+        /* Always restore ClusterId and ConfigNodeId first */
+        CONF.setClusterName(SystemPropertiesUtils.loadClusterNameWhenRestarted());
         CONF.setConfigNodeId(SystemPropertiesUtils.loadConfigNodeIdWhenRestarted());
+
+        if (!SystemPropertiesUtils.isSeedConfigNode()) {

Review Comment:
   No, the Seed-ConfigNode is always the first started ConfigNode



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