jolshan commented on code in PR #13607: URL: https://github.com/apache/kafka/pull/13607#discussion_r1180865066
########## clients/src/main/java/org/apache/kafka/common/requests/ProduceRequest.java: ########## @@ -222,6 +223,27 @@ public void clearPartitionRecords() { partitionSizes(); data = null; } + + public static void validateProducerIds(short version, ProduceRequestData data) { + if (version >= 3) { Review Comment: In producerequest.json: > // Version 3 adds the transactional ID, which is used for authorization when attempting to write // transactional data. Version 3 also adds support for Kafka Message Format v2. Basically before version 3, these fields aren't used. -- 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