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



##########
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:
       Since we parse the header lazily now, what is causing this exception?




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