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


##########
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/RatisConsensus.java:
##########
@@ -555,6 +555,13 @@ public void addRemotePeer(ConsensusGroupId groupId, Peer 
peer) throws ConsensusE
       throw new PeerAlreadyInConsensusGroupException(groupId, peer);
     }
 
+    // pre-condition: peer should not have same ip address with any member 
already in the group
+    if (group.getPeers().stream()

Review Comment:
   combine to line 554?



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