hachikuji commented on code in PR #12224:
URL: https://github.com/apache/kafka/pull/12224#discussion_r914050203


##########
raft/src/main/java/org/apache/kafka/raft/internals/BatchAccumulator.java:
##########
@@ -132,7 +134,7 @@ public long appendAtomic(int epoch, List<T> records) {
 
     private long append(int epoch, List<T> records, boolean isAtomic) {
         if (epoch < this.epoch) {
-            throw new NotLeaderException("Append failed because the epoch 
doesn't match");
+            throw new NotLeaderException("Append failed because the given 
epoch is stale");

Review Comment:
   nit: could we add the provided epoch and the current epoch to this message?



-- 
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