Skip to content

Commit

Permalink
[Fix] fix writing fail in ratisConsensus due to retry policy conditio…
Browse files Browse the repository at this point in the history
…n mismatch apache#13810
  • Loading branch information
133tosakarin authored Oct 17, 2024
1 parent e854bd7 commit 85e0e15
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ public RatisConsensus(ConsensusConfig config, IStateMachine.Registry registry) {
.setRetryHandler(
reply ->
!reply.isSuccess()
&& (reply.getException() instanceof ResourceUnavailableException)
&& (reply.getException() instanceof LeaderNotReadyException)
&& (reply.getException() instanceof LeaderSteppingDownException)
&& (reply.getException() instanceof StateMachineException))
&& ((reply.getException() instanceof ResourceUnavailableException)
|| reply.getException() instanceof LeaderNotReadyException
|| reply.getException() instanceof LeaderSteppingDownException
|| reply.getException() instanceof StateMachineException))
.setMaxAttempts(this.config.getImpl().getRetryTimesMax())
.setWaitTime(
TimeDuration.valueOf(
Expand Down

0 comments on commit 85e0e15

Please sign in to comment.