From 0c937e570adf083e7577799720c7dfab17b4c3ee Mon Sep 17 00:00:00 2001 From: Xiangpeng Hu Date: Mon, 12 Aug 2024 20:09:11 +0800 Subject: [PATCH] add ratis exception catch --- .../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 9f65281e2040..1835c69384a4 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 @@ public DataSet read(ConsensusGroupId groupId, IConsensusRequest request) } else { throw new RatisRequestFailedException(e); } + } catch (GroupMismatchException e) { + throw new ConsensusGroupNotExistException(groupId); } catch (Exception e) { throw new RatisRequestFailedException(e); }