This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a commit to branch rc/1.3.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rc/1.3.3 by this push:
new a0d4d25e1c3 [Region Migration] Convert a Ratis exception to enable
read retry #13142 (#13166)
a0d4d25e1c3 is described below
commit a0d4d25e1c3c7827a10bf9a5c37de7a5d887147c
Author: Xiangpeng Hu <[email protected]>
AuthorDate: Wed Aug 14 18:24:45 2024 +0800
[Region Migration] Convert a Ratis exception to enable read retry #13142
(#13166)
(cherry picked from commit 53af23e71821342bc48b24e8ab9226bdc8df344a)
---
.../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);
}