MiniSho commented on code in PR #7264:
URL: https://github.com/apache/iotdb/pull/7264#discussion_r968087852
##########
confignode/src/main/java/org/apache/iotdb/confignode/procedure/env/DataNodeRemoveHandler.java:
##########
@@ -433,8 +445,28 @@ private TSStatus checkDataNodeExist(RemoveDataNodePlan
removeDataNodePlan) {
*/
private TSStatus checkRegionReplication(RemoveDataNodePlan
removeDataNodePlan) {
TSStatus status = new
TSStatus(TSStatusCode.SUCCESS_STATUS.getStatusCode());
- int removedDataNodeSize = removeDataNodePlan.getDataNodeLocations().size();
+ List<TDataNodeLocation> removedDataNodes =
removeDataNodePlan.getDataNodeLocations();
int allDataNodeSize =
configManager.getNodeManager().getRegisteredDataNodeCount();
+ if (NodeInfo.getMinimumDataNode() == 1) {
Review Comment:
done
##########
confignode/src/main/java/org/apache/iotdb/confignode/procedure/env/DataNodeRemoveHandler.java:
##########
@@ -433,8 +445,28 @@ private TSStatus checkDataNodeExist(RemoveDataNodePlan
removeDataNodePlan) {
*/
private TSStatus checkRegionReplication(RemoveDataNodePlan
removeDataNodePlan) {
TSStatus status = new
TSStatus(TSStatusCode.SUCCESS_STATUS.getStatusCode());
- int removedDataNodeSize = removeDataNodePlan.getDataNodeLocations().size();
+ List<TDataNodeLocation> removedDataNodes =
removeDataNodePlan.getDataNodeLocations();
int allDataNodeSize =
configManager.getNodeManager().getRegisteredDataNodeCount();
+ if (NodeInfo.getMinimumDataNode() == 1) {
Review Comment:
done
--
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]