hachikuji commented on a change in pull request #10909:
URL: https://github.com/apache/kafka/pull/10909#discussion_r680121946



##########
File path: raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java
##########
@@ -2305,7 +2307,7 @@ public void resign(int epoch) {
         int currentEpoch = leaderAndEpoch.epoch();
 
         if (epoch > currentEpoch) {
-            throw new IllegalArgumentException("Attempt to resign from epoch " 
+ epoch +
+            throw new FencedEpochException("Attempt to resign from epoch " + 
epoch +

Review comment:
       Yeah, I agree with this. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to