hangc0276 commented on code in PR #3437:
URL: https://github.com/apache/bookkeeper/pull/3437#discussion_r997122159
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/Journal.java:
##########
@@ -897,7 +898,12 @@ public long scanJournal(long journalId, long journalPos,
JournalScanner scanner)
continue;
}
isPaddingRecord = true;
- } else {
+ } else if (skipInvalidRecord){
+ LOG.warn("Invalid record found with negative length:
{},because of " +
Review Comment:
Maybe we can catch the exception before `finally`.
--
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]