Skip to content

Commit

Permalink
[region migration] Enable write retry for ratis local write (#13901) (#…
Browse files Browse the repository at this point in the history
…13913)

(cherry picked from commit fe23762)
  • Loading branch information
HxpSerein authored Oct 25, 2024
1 parent cc2764f commit 64bf6d8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ && waitUntilLeaderReady(raftGroupId)) {
if (ex != null) {
suggestedLeader = ex.getSuggestedLeader();
}
} catch (GroupMismatchException e) {
throw new ConsensusGroupNotExistException(groupId);
} catch (Exception e) {
throw new RatisRequestFailedException(e);
}
Expand All @@ -347,6 +349,8 @@ && waitUntilLeaderReady(raftGroupId)) {
throw new RatisRequestFailedException(reply.getException());
}
writeResult = Utils.deserializeFrom(reply.getMessage().getContent().asReadOnlyByteBuffer());
} catch (GroupMismatchException e) {
throw new ConsensusGroupNotExistException(groupId);
} catch (Exception e) {
throw new RatisRequestFailedException(e);
}
Expand Down

0 comments on commit 64bf6d8

Please sign in to comment.