jolshan commented on code in PR #17402: URL: https://github.com/apache/kafka/pull/17402#discussion_r1824727613
########## core/src/test/scala/integration/kafka/api/TransactionsTest.scala: ########## @@ -914,11 +914,23 @@ class TransactionsTest extends IntegrationTestHarness { // Check that the epoch only increased by 1 when TV2 is disabled. // With TV2 and the latest EndTxnRequest version, the epoch will be bumped at the end of every transaction. - if (!isTV2Enabled) assertEquals((initialProducerEpoch + 1).toShort, producerStateEntry.producerEpoch) + if (!isTV2Enabled) { + producerStateEntry = Review Comment: If we duplicate this code, we should remove it from lines 911-913. I am also taking a look at something. -- 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