bachmanity1 commented on code in PR #13261: URL: https://github.com/apache/kafka/pull/13261#discussion_r1114028635
########## clients/src/main/java/org/apache/kafka/common/protocol/types/Type.java: ########## @@ -688,8 +688,10 @@ public Object read(ByteBuffer buffer) { if (size > buffer.remaining()) throw new SchemaException("Error reading bytes of size " + size + ", only " + buffer.remaining() + " bytes available"); + int limit = buffer.limit(); + buffer.limit(buffer.position() + size); Review Comment: I introduced a new variable `newPosition` -- 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