HxpSerein commented on code in PR #13559:
URL: https://github.com/apache/iotdb/pull/13559#discussion_r1778263046


##########
iotdb-core/datanode/src/assembly/resources/sbin/remove-datanode.sh:
##########
@@ -19,21 +19,35 @@
 #
 
 if [ "$#" -eq 1 ] && [ "$1" == "--help" ]; then
-    echo "The script will remove a DataNode."
-    echo "Before removing a DataNode, ensure that the cluster has at least the 
number of data/schema replicas DataNodes."
+    echo "The script will remove one or more DataNodes."
+    echo "Before removing DataNodes, ensure that the cluster has at least the 
number of data/schema replicas DataNodes."
     echo "Usage:"
-    echo "Remove the DataNode with datanode_id"
-    echo "./sbin/remove-datanode.sh [datanode_id]"
+    echo "Remove one or more DataNodes with datanode_id"
+    echo "./sbin/remove-datanode.sh [datanode_id ...]"
     exit 0
 fi
 
+# Ensure that at least one DataNode ID is provided
+if [ "$#" -eq 0 ]; then

Review Comment:
   Removed.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to