Skip to content

Commit

Permalink
Fix ReadOnlyLedgerHandle leak issue when checkAllLedgers.
Browse files Browse the repository at this point in the history
  • Loading branch information
horizonzy committed Jul 23, 2024
1 parent 4ca020a commit 6e570c3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ void checkAllLedgers() throws BKException, IOException, InterruptedException {
auditorStats.getNumFragmentsPerLedger().registerSuccessfulValue(lh.getNumFragments());
auditorStats.getNumBookiesPerLedger().registerSuccessfulValue(lh.getNumBookies());
auditorStats.getNumLedgersChecked().inc();
lh.closeAsync();
});
} else if (BKException.Code.NoSuchLedgerExistsOnMetadataServerException == rc) {
if (LOG.isDebugEnabled()) {
Expand Down

0 comments on commit 6e570c3

Please sign in to comment.