hangc0276 commented on code in PR #3263:
URL: https://github.com/apache/bookkeeper/pull/3263#discussion_r868739844
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/DefaultEntryLogger.java:
##########
@@ -1086,7 +1087,9 @@ EntryLogMetadata extractEntryLogMetadataFromIndex(long
entryLogId) throws IOExce
bc.read(sizeBuffer.get(), offset);
int ledgersMapSize = sizeBuffer.get().readInt();
-
+ if (ledgersMapSize <= 0) {
Review Comment:
If there are not ledgers in ledgerMap, we just skip the following reading.
--
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]