OneSizeFitsQuorum commented on code in PR #13164:
URL: https://github.com/apache/iotdb/pull/13164#discussion_r1716387339


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java:
##########
@@ -469,27 +469,45 @@ private void removeInvalidRegions(List<ConsensusGroupId> 
dataNodeConsensusGroupI
         
DataRegionConsensusImpl.getInstance().getAllConsensusGroupIdsWithoutStarting().stream()
             .filter(consensusGroupId -> 
!dataNodeConsensusGroupIds.contains(consensusGroupId))
             .collect(Collectors.toList());
+    int length = invalidConsensusGroupIds.size();
+    invalidConsensusGroupIds.addAll(

Review Comment:
   Break this into two functions, one to remove schemaregion and one to remove 
dataregion



-- 
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