arnabnandy7 commented on code in PR #22989:
URL: https://github.com/apache/kafka/pull/22989#discussion_r3752231664


##########
clients/src/main/java/org/apache/kafka/common/requests/AbstractResponse.java:
##########
@@ -34,6 +34,44 @@
 public abstract class AbstractResponse implements AbstractRequestResponse {
     public static final int DEFAULT_THROTTLE_TIME = 0;
 
+    private static final Map<ApiKeys, Short> POST_KIP_219_VERSION = 
Map.ofEntries(
+        Map.entry(ApiKeys.PRODUCE, (short) 6),

Review Comment:
   Thanks, @junrao. I removed the duplicate map from the test. The test now 
uses the centralized historical version boundaries directly while continuing to 
verify `shouldClientThrottle` across every API and supported version, including 
the schema-based fallback for APIs added after KIP-219.



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

Reply via email to