You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2023/01/13 09:21:05 UTC

[GitHub] [bookkeeper] horizonzy commented on a diff in pull request #3612: [branch-4.15] Fix the problem that the abnormal file causes the bookie GC fail

horizonzy commented on code in PR #3612:
URL: https://github.com/apache/bookkeeper/pull/3612#discussion_r1069129302


##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java:
##########
@@ -1021,6 +1021,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:
   It can't resolve the problem. It can't skip the ledgerMap.



-- 
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: commits-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org