junrao commented on code in PR #18727:
URL: https://github.com/apache/kafka/pull/18727#discussion_r1934427757


##########
clients/src/main/resources/common/message/ProduceRequest.json:
##########
@@ -44,7 +47,7 @@
   // transaction V2 (KIP_890 part 2) is enabled, the produce request will also 
include the function for a
   // AddPartitionsToTxn call. If V2 is disabled, the client can't use produce 
request version higher than 11 within
   // a transaction.
-  "validVersions": "3-12",
+  "validVersions": "0-12",

Review Comment:
   Yes, we could make an effort to send a more meaningful error code for 
produce v0-v2. But since they are not really supported on the broker, just 
doing a disconnect like any other unsupported version also seems reasonable.



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