chb2ab commented on code in PR #14444:
URL: https://github.com/apache/kafka/pull/14444#discussion_r1367116597


##########
clients/src/main/resources/common/message/FetchResponse.json:
##########
@@ -102,6 +104,15 @@
           "about": "The preferred read replica for the consumer to use on its 
next fetch request"},
         { "name": "Records", "type": "records", "versions": "0+", 
"nullableVersions": "0+", "about": "The record data."}
       ]}
+    ]},

Review Comment:
   it looks like tags are scoped to the list level so this isn't really the 
same tag. They also need to be contiguous within their scope so this gives an 
error if I try to tag NodeEndpoints to something other than 0.



##########
clients/src/main/resources/common/message/ProduceResponse.json:
##########
@@ -59,10 +61,26 @@
             "about": "The error message of the record that caused the batch to 
be dropped"}
         ]},
         { "name":  "ErrorMessage", "type": "string", "default": "null", 
"versions": "8+", "nullableVersions": "8+", "ignorable":  true,
-          "about":  "The global error message summarizing the common root 
cause of the records that caused the batch to be dropped"}
+          "about":  "The global error message summarizing the common root 
cause of the records that caused the batch to be dropped"},
+        { "name": "CurrentLeader", "type": "LeaderIdAndEpoch", "versions": 
"10+", "taggedVersions": "10+", "tag": 0, "fields": [
+          { "name": "LeaderId", "type": "int32", "versions": "10+", "default": 
"-1", "entityType": "brokerId",
+            "about": "The ID of the current leader or -1 if the leader is 
unknown."},
+          { "name": "LeaderEpoch", "type": "int32", "versions": "10+", 
"default": "-1", "about": "The latest known leader epoch"}
+        ]}
       ]}
     ]},
     { "name": "ThrottleTimeMs", "type": "int32", "versions": "1+", 
"ignorable": true, "default": "0",
-      "about": "The duration in milliseconds for which the request was 
throttled due to a quota violation, or zero if the request did not violate any 
quota." }
+      "about": "The 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": "NodeEndpoints", "type": "[]NodeEndpoint", "versions": "10+", 
"taggedVersions": "10+", "tag": 0,

Review Comment:
   same response as in FetchResponse.json



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