You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ca...@apache.org on 2022/11/18 10:11:35 UTC

[iotdb] branch beyyes/fix_confignode_restart created (now 29716e8e4c)

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

caogaofei pushed a change to branch beyyes/fix_confignode_restart
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at 29716e8e4c remove createPeer state when confignode restart

This branch includes the following new commits:

     new 29716e8e4c remove createPeer state when confignode restart

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: remove createPeer state when confignode restart

Posted by ca...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

caogaofei pushed a commit to branch beyyes/fix_confignode_restart
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 29716e8e4c48382cc4554ec63f1b18349057f327
Author: Beyyes <cg...@foxmail.com>
AuthorDate: Fri Nov 18 18:11:12 2022 +0800

    remove createPeer state when confignode restart
---
 .../java/org/apache/iotdb/confignode/manager/ConsensusManager.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/confignode/src/main/java/org/apache/iotdb/confignode/manager/ConsensusManager.java b/confignode/src/main/java/org/apache/iotdb/confignode/manager/ConsensusManager.java
index 3de783f000..1b84f02e8d 100644
--- a/confignode/src/main/java/org/apache/iotdb/confignode/manager/ConsensusManager.java
+++ b/confignode/src/main/java/org/apache/iotdb/confignode/manager/ConsensusManager.java
@@ -182,9 +182,10 @@ public class ConsensusManager {
     consensusImpl.start();
     if (SystemPropertiesUtils.isRestarted()) {
       try {
-        // Create ConsensusGroup from confignode-system.properties file when restart
         // TODO: Check and notify if current ConfigNode's ip or port has changed
-        createPeerForConsensusGroup(SystemPropertiesUtils.loadConfigNodeList());
+        LOGGER.info(
+            "Init ConsensusManager successfully when restarted, configNodeList: {}",
+            SystemPropertiesUtils.loadConfigNodeList());
       } catch (BadNodeUrlException e) {
         throw new IOException(e);
       }