zymap commented on code in PR #3611:
URL: https://github.com/apache/bookkeeper/pull/3611#discussion_r1021025279
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java:
##########
@@ -1000,6 +1000,11 @@ public void scanEntryLog(long entryLogId,
EntryLogScanner scanner) throws IOExce
long offset = pos;
pos += 4;
int entrySize = headerBuffer.readInt();
+ if (entrySize <= 0) { // hitting padding
Review Comment:
Is it possible the entrySize is normal but the ledgerId is abnormal?
--
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]