chb2ab commented on code in PR #14444: URL: https://github.com/apache/kafka/pull/14444#discussion_r1358826931
########## core/src/main/scala/kafka/server/KafkaApis.scala: ########## @@ -620,6 +642,21 @@ class KafkaApis(val requestChannel: RequestChannel, topicPartition, status.error.exceptionName)) } + + if (request.header.apiVersion >= 10) { + status.currentLeader = { + status.error match { + case Errors.NOT_LEADER_OR_FOLLOWER | Errors.FENCED_LEADER_EPOCH => Review Comment: ok, removed FENCED_LEADER_EPOCH from the produce path -- 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