You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2018/03/16 06:03:57 UTC
[GitHub] merlimat commented on a change in pull request #1264: Refactored LAC cache in DbLedgerStorage
merlimat commented on a change in pull request #1264: Refactored LAC cache in DbLedgerStorage
URL: https://github.com/apache/bookkeeper/pull/1264#discussion_r175003946
##########
File path: bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/DbLedgerStorage.java
##########
@@ -197,7 +208,9 @@ public void close() {
private LedgerMetadataIndex ledgerIndex;
private EntryLocationIndex entryLocationIndex;
- private LoadingCache<Long, TransientLedgerInfo> transientLedgerInfoCache;
+
+ private static final long LEDGER_INFO_CACHING_TIME_MINUTES = 10;
Review comment:
The default for `getFileInfoMaxIdleTime` and I think we should have some time based eviction from this cache by default. The bookie might be storing many ledgers, though only a fraction of them might be actually be "active".
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services