1559924775 commented on code in PR #3611:
URL: https://github.com/apache/bookkeeper/pull/3611#discussion_r1027505865
##########
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:
Skip and continue to read the next entry.
See "scanner.accept(ledgerId)" in line 1011.
The code is consistent with version 4.16.
--
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]