gaozhangmin commented on code in PR #3948:
URL: https://github.com/apache/bookkeeper/pull/3948#discussion_r1188195829


##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/DefaultEntryLogger.java:
##########
@@ -1036,6 +1036,9 @@ public EntryLogMetadata getEntryLogMetadata(long 
entryLogId, AbstractLogCompacto
         // entry log
         try {
             return extractEntryLogMetadataFromIndex(entryLogId);
+        } catch (FileNotFoundException ex) {

Review Comment:
    If  `FileNotFoundException` is caught,  no need to proceed with the 
`extractEntryLogMetadataByScanning(entryLogId, throttler)` method call.  save 
unnecessary call.



-- 
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]

Reply via email to