This is an automated email from the ASF dual-hosted git repository.

tanxinyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new e4f10fe89fb [region migration] Do RatisConsensus resetPeerList even if 
myself not in peer list #13223
e4f10fe89fb is described below

commit e4f10fe89fb77251c04b46a3a079d0800bbcad8b
Author: Li Yu Heng <[email protected]>
AuthorDate: Mon Aug 19 18:10:39 2024 +0800

    [region migration] Do RatisConsensus resetPeerList even if myself not in 
peer list #13223
---
 .../src/main/java/org/apache/iotdb/consensus/ratis/RatisConsensus.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/RatisConsensus.java
 
b/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/RatisConsensus.java
index 1835c69384a..d4bb8d55c8a 100644
--- 
a/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/RatisConsensus.java
+++ 
b/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/RatisConsensus.java
@@ -562,8 +562,7 @@ class RatisConsensus implements IConsensus {
     final RaftGroupId raftGroupId = 
Utils.fromConsensusGroupIdToRaftGroupId(groupId);
     final RaftGroup group = getGroupInfo(raftGroupId);
 
-    // pre-conditions: group exists and myself in this group
-    if (group == null || !group.getPeers().contains(myself)) {
+    if (group == null) {
       throw new ConsensusGroupNotExistException(groupId);
     }
 

Reply via email to