chia7712 commented on a change in pull request #9223:
URL: https://github.com/apache/kafka/pull/9223#discussion_r479750019



##########
File path: 
clients/src/test/java/org/apache/kafka/common/record/DefaultRecordTest.java
##########
@@ -270,7 +270,7 @@ public void testInvalidNumHeadersPartial() throws 
IOException {
         DefaultRecord.readPartiallyFrom(inputStream, skipArray, 0L, 0L, 
RecordBatch.NO_SEQUENCE, null);
     }
 
-    @Test(expected = StringIndexOutOfBoundsException.class)
+    @Test(expected = InvalidRecordException.class)

Review comment:
       The exception is caused by ```headerKeyBuffer.limit(headerKeySize);```. 
The new limit is larger than capacity




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to