horizonzy commented on code in PR #3611:
URL: https://github.com/apache/bookkeeper/pull/3611#discussion_r1069133187
##########
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:
I think it can't resolve the disorder problem. After this pr, could you
parse the entry file incorrectly?
--
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]