chia7712 commented on code in PR #16167:
URL: https://github.com/apache/kafka/pull/16167#discussion_r1671259078
##########
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:
My point was why we need to change the production code in this test
migration?
--
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]