rreddy-22 commented on code in PR #19751:
URL: https://github.com/apache/kafka/pull/19751#discussion_r2100995696


##########
core/src/main/scala/kafka/coordinator/transaction/TransactionMetadata.scala:
##########
@@ -70,6 +72,20 @@ private[transaction] class TransactionMetadata(val 
transactionalId: String,
 
   private[transaction] val lock = new ReentrantLock
 
+  def hasNextProducerEpoch: Boolean = nextProducerEpoch != 
RecordBatch.NO_PRODUCER_EPOCH
+
+  // When InitProducerId keeps an Ongoing transaction (which is "prepared" from
+  // the 2PC protocol perspective) it needs to preserve the producerId / epoch 
of
+  // the transaction (that will be used for sending markers), but update the
+  // producerId / epoch that's going ot be used by client (so that we could 
fence

Review Comment:
   nit: ot -> to



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