jolshan commented on code in PR #13231: URL: https://github.com/apache/kafka/pull/13231#discussion_r1107757784
########## clients/src/main/resources/common/message/AddPartitionsToTxnResponse.json: ########## @@ -22,22 +22,35 @@ // Version 2 adds the support for new error code PRODUCER_FENCED. // // Version 3 enables flexible versions. - "validVersions": "0-3", + // + // Version 4 adds support to batch multiple transactions. + "validVersions": "0-4", "flexibleVersions": "3+", "fields": [ { "name": "ThrottleTimeMs", "type": "int32", "versions": "0+", "about": "Duration in milliseconds for which the request was throttled due to a quota violation, or zero if the request did not violate any quota." }, - { "name": "Results", "type": "[]AddPartitionsToTxnTopicResult", "versions": "0+", - "about": "The results for each topic.", "fields": [ + { "name": "ResultsByTransaction", "type": "[]AddPartitionsToTxnResult", "versions": "4+", + "about": "Results categorized by transactional ID.", "fields": [ + { "name": "TransactionalId", "type": "string", "versions": "4+", "mapKey": true, "entityType": "transactionalId", + "about": "The transactional id corresponding to the transaction."}, + { "name": "TopicResults", "type": "[]AddPartitionsToTxnTopicResult", "versions": "4+", + "about": "The results for each topic." } + ]}, + { "name": "Results", "type": "[]AddPartitionsToTxnTopicResult", "versions": "0-3", Review Comment: That's fair. We've done something similar in the past. -- 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