jolshan commented on code in PR #20039: URL: https://github.com/apache/kafka/pull/20039#discussion_r2211301628
########## clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java: ########## @@ -1965,6 +1977,9 @@ private PendingStateTransition( * @return a PreparedTxnState with the current producer ID and epoch */ public PreparedTxnState preparedTransactionState() { - return this.preparedTxnState; + if (this.preparedTxnState == ProducerIdAndEpoch.NONE) { Review Comment: not sure if it's a big deal either way, but I think it is also ok to not have this check -- as the PreparedTxnState would set the same values. -- 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