chia7712 commented on code in PR #16719:
URL: https://github.com/apache/kafka/pull/16719#discussion_r2647205845
##########
core/src/main/scala/kafka/coordinator/transaction/TransactionLog.scala:
##########
@@ -78,17 +79,16 @@ object TransactionLog {
// Serialize with version 0 (highest non-flexible version) until
transaction.version 1 is enabled
// which enables flexible fields in records.
- val version: Short =
- if (usesFlexibleRecords) 1 else 0
- MessageUtil.toVersionPrefixedBytes(version,
+
MessageUtil.toVersionPrefixedBytes(transactionVersionLevel.transactionLogValueVersion(),
Review Comment:
@jolshan Thanks for the detailed explanation and for sharing your insights!
--
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]