divijvaidya commented on code in PR #12229:
URL: https://github.com/apache/kafka/pull/12229#discussion_r903666645


##########
clients/src/main/java/org/apache/kafka/common/record/DefaultRecordBatch.java:
##########
@@ -308,7 +308,7 @@ protected Record readNext(long baseOffset, long 
baseTimestamp, int baseSequence,
                 try {
                     return DefaultRecord.readFrom(buffer, baseOffset, 
baseTimestamp, baseSequence, logAppendTime);
                 } catch (BufferUnderflowException e) {
-                    throw new InvalidRecordException("Incorrect declared batch 
size, premature EOF reached");
+                    throw new InvalidRecordException("Incorrect declared batch 
size, premature EOF reached", e);

Review Comment:
   You are right, it doesn't. I will revert this.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to