jolshan commented on code in PR #21735:
URL: https://github.com/apache/kafka/pull/21735#discussion_r4498322952
##########
clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java:
##########
@@ -340,7 +340,10 @@ synchronized TransactionalRequestResult
initializeTransactions(
.setEnable2Pc(enable2PC)
.setKeepPreparedTxn(keepPreparedTxn);
- InitProducerIdHandler handler = new InitProducerIdHandler(new
InitProducerIdRequest.Builder(requestData),
+ // Use unstable API version when 2PC features are enabled
(requires InitProducerId v6)
+ boolean enableUnstableLastVersion = enable2PC || keepPreparedTxn;
+ InitProducerIdHandler handler = new InitProducerIdHandler(
Review Comment:
I suppose we will remove this when the version becomes stable?
--
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]