Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qunzhong committed Jul 26, 2024
1 parent 229dbc1 commit 0a24395
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -698,14 +698,13 @@ private void fillReadAheadCache(long originalLedgerId, long firstEntryId, long f
ReferenceCountUtil.release(entry);
}
}
dbLedgerStorageStats.getReadAheadBatchCountStats().registerSuccessfulValue(count);
dbLedgerStorageStats.getReadAheadBatchSizeStats().registerSuccessfulValue(size);
recordSuccessfulEvent(dbLedgerStorageStats.getReadAheadTime(),readAheadStartNano);
} catch (Exception e) {
if (log.isDebugEnabled()) {
log.debug("Exception during read ahead for ledger: {}: e", originalLedgerId, e);
}
dbLedgerStorageStats.getReadAheadBatchCountStats().registerSuccessfulValue(count);
dbLedgerStorageStats.getReadAheadBatchSizeStats().registerSuccessfulValue(size);
recordSuccessfulEvent(dbLedgerStorageStats.getReadAheadTime(),readAheadStartNano);
} finally {
dbLedgerStorageStats.getReadAheadBatchCountStats().registerFailedValue(count);
dbLedgerStorageStats.getReadAheadBatchSizeStats().registerFailedValue(size);
recordFailedEvent(dbLedgerStorageStats.getReadAheadTime(),readAheadStartNano);
Expand Down

0 comments on commit 0a24395

Please sign in to comment.