You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by yo...@apache.org on 2025/10/17 11:37:31 UTC

(iotdb) branch Fix-datanode-start-process created (now 010fab552f8)

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

yongzao pushed a change to branch Fix-datanode-start-process
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at 010fab552f8 Update DataNode.java

This branch includes the following new commits:

     new 010fab552f8 Update DataNode.java

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: Update DataNode.java

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

yongzao pushed a commit to branch Fix-datanode-start-process
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 010fab552f8692658983cabef3dcb80db28ad25d
Author: Yongzao <53...@qq.com>
AuthorDate: Fri Oct 17 19:37:08 2025 +0800

    Update DataNode.java
---
 .../datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java
index cebf7dab9f3..f66eff373ab 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java
@@ -236,10 +236,12 @@ public class DataNode extends ServerCommandLine implements DataNodeMBean {
       pullAndCheckSystemConfigurations();
 
       if (isFirstStart) {
+        // ========Generate system file immediately after registered from ConfigNode========
         sendRegisterRequestToConfigNode(true);
         IoTDBStartCheck.getInstance().generateOrOverwriteSystemPropertiesFile();
-        IoTDBStartCheck.getInstance().serializeEncryptMagicString();
         ConfigNodeInfo.getInstance().storeConfigNodeList();
+        // =================================================================================
+        IoTDBStartCheck.getInstance().serializeEncryptMagicString();
         // Register this DataNode to the cluster when first start
         sendRegisterRequestToConfigNode(false);
         saveSecretKey();