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:32 UTC
(iotdb) 01/01: Update DataNode.java
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();