soondenana commented on code in PR #19163:
URL: https://github.com/apache/kafka/pull/19163#discussion_r1988107211


##########
clients/src/main/java/org/apache/kafka/common/requests/AbstractRequest.java:
##########
@@ -168,190 +175,194 @@ public Map<Errors, Integer> errorCounts(Throwable e) {
      * Factory method for getting a request object based on ApiKey ID and a 
version
      */
     public static RequestAndSize parseRequest(ApiKeys apiKey, short 
apiVersion, ByteBuffer buffer) {
-        int bufferSize = buffer.remaining();
-        return new RequestAndSize(doParseRequest(apiKey, apiVersion, buffer), 
bufferSize);
+        return parseRequest(apiKey, apiVersion, new 
ByteBufferAccessor(buffer));

Review Comment:
   Done.



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