chia7712 commented on code in PR #16167:
URL: https://github.com/apache/kafka/pull/16167#discussion_r1671302401


##########
storage/src/main/java/org/apache/kafka/storage/internals/log/LogValidator.java:
##########
@@ -574,7 +574,7 @@ private static Optional<ApiRecordError> 
validateRecord(RecordBatch batch,
         if (batch.magic() <= RecordBatch.MAGIC_VALUE_V1 && 
batch.isCompressed()) {
             try {
                 record.ensureValid();
-            } catch (InvalidRecordException e) {
+            } catch (InvalidRecordException | CorruptRecordException e) {

Review Comment:
   ok, it seems that is another issue.
   
   #7150 changes the thrown exception from `InvalidRecordException` to 
`CorruptRecordException`, and so `LogValidator` can't catch it to update 
`recordInvalidChecksums`. Let me file a Jira for it



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