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 53af23e7182 [Region Migration] Convert a Ratis exception to enable 
read retry #13142
53af23e7182 is described below

commit 53af23e71821342bc48b24e8ab9226bdc8df344a
Author: Xiangpeng Hu <[email protected]>
AuthorDate: Tue Aug 13 14:38:19 2024 +0800

    [Region Migration] Convert a Ratis exception to enable read retry #13142
---
 .../src/main/java/org/apache/iotdb/consensus/ratis/RatisConsensus.java  | 2 ++
 1 file changed, 2 insertions(+)

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 9f65281e204..1835c69384a 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
@@ -374,6 +374,8 @@ class RatisConsensus implements IConsensus {
       } else {
         throw new RatisRequestFailedException(e);
       }
+    } catch (GroupMismatchException e) {
+      throw new ConsensusGroupNotExistException(groupId);
     } catch (Exception e) {
       throw new RatisRequestFailedException(e);
     }

Reply via email to