dlmarion commented on code in PR #3629:
URL: https://github.com/apache/accumulo/pull/3629#discussion_r1268060452


##########
core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/tinylfu/TinyLfuBlockCache.java:
##########
@@ -65,12 +66,14 @@ public final class TinyLfuBlockCache implements BlockCache {
       .createScheduledExecutorService(1, "TinyLfuBlockCacheStatsExecutor", 
true);
 
   public TinyLfuBlockCache(Configuration conf, CacheType type) {
-    cache = Caffeine.newBuilder()
-        .initialCapacity((int) Math.ceil(1.2 * conf.getMaxSize(type) / 
conf.getBlockSize()))
-        .weigher((String blockName, Block block) -> {
+    cache = Caches.getInstance().getCache(CacheName.TINYLFU_BLOCK_CACHE,

Review Comment:
   I reworked Caches in b663e71. For the block caches, it just returns a 
builder w/o metrics configuration.



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