jolshan commented on code in PR #13787: URL: https://github.com/apache/kafka/pull/13787#discussion_r1256141517
########## core/src/main/scala/kafka/cluster/Partition.scala: ########## @@ -578,7 +578,7 @@ class Partition(val topicPartition: TopicPartition, // Returns a verification guard object if we need to verify. This starts or continues the verification process. Otherwise return null. def maybeStartTransactionVerification(producerId: Long): Object = { - leaderLogIfLocal match { + log match { Review Comment: This was found due to a specific race condition where leadership was elected in the middle of handling the produce request. I can try to recreate. -- 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