Skip to content

Commit f3afc20

Browse files
authored
[remove datanode] Enhance remove message on environment with only ConfigNode #14123
1 parent b5a8b47 commit f3afc20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/client/ConfigNodeInfo.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ public void loadConfigNodeList() throws StartupException {
124124
}
125125
if (onlineConfigNodes.isEmpty()) {
126126
throw new StartupException(
127-
"No ConfigNode found in system.properties, please check if system.properties is configured correctly in DataNode system folder.");
127+
"Removing is only allowed in an environment where the datanode has been successfully started. "
128+
+ "Please check whether it is removed on the confignode, or if you have deleted the system.properties file by mistake.");
128129
}
129130
long endTime = System.currentTimeMillis();
130131
logger.info(

0 commit comments

Comments
 (0)