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


##########
core/src/main/scala/kafka/coordinator/transaction/TransactionCoordinator.scala:
##########
@@ -263,7 +277,7 @@ class TransactionCoordinator(txnConfig: TransactionConfig,
           val transitMetadataResult =
             // If the epoch is exhausted and the expected epoch (if provided) 
matches it, generate a new producer ID
             try {
-              if (txnMetadata.isProducerEpochExhausted &&
+              if (txnMetadata.isClientFacingEpochExhausted &&

Review Comment:
   nit: is it useful to check txnMetadata.clientProducerEpoch below? I think 
they should be the same, but we used client in the previous check. 



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

Reply via email to