jolshan commented on code in PR #21735:
URL: https://github.com/apache/kafka/pull/21735#discussion_r4498684183
##########
transaction-coordinator/src/main/java/org/apache/kafka/coordinator/transaction/TransactionMetadata.java:
##########
@@ -247,7 +299,7 @@ public TxnTransitMetadata
prepareAbortOrCommit(TransactionState newState,
// We already ensured that we do not overflow here. MAX_SHORT
is the highest possible value.
data.producerEpoch = (short) (producerEpoch + 1);
}
- data.lastProducerEpoch = producerEpoch;
+ data.lastProducerEpoch = clientProducerEpoch();
Review Comment:
😅 This PR open long enough for the bugs to be fixed outside of it
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]