jolshan commented on code in PR #17698:
URL: https://github.com/apache/kafka/pull/17698#discussion_r1872299439


##########
core/src/test/scala/unit/kafka/coordinator/transaction/TransactionCoordinatorTest.scala:
##########
@@ -463,31 +463,118 @@ class TransactionCoordinatorTest {
     
verify(transactionManager).getTransactionState(ArgumentMatchers.eq(transactionalId))
   }
 
+  @Test
+  def testEndTxnRetryIsAllowedDuringV1UpgradeToV2(): Unit = {

Review Comment:
   Sorry I should have caught this sooner, but I'm a bit confused by this case. 
   We complete commit with tv 0. 
   
   I don't know if we would retry with tv_2. This would start the next 
transaction right? And we wouldn't have the previous epoch if we upgraded to 
tv_2. The only case for a retry for tv0 would be with the same tv and epoch. 
This test seems to send a request as if the previous request was tv2. Perhaps 
we should remove this test.
    



-- 
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

Reply via email to