From c415ec86be00c3b2253a1d403ec774605edf98bf Mon Sep 17 00:00:00 2001 From: Peter Alfonsi Date: Wed, 22 Nov 2023 14:48:56 -0800 Subject: [PATCH] removed more dead code Signed-off-by: Peter Alfonsi --- .../common/cache/tier/EhCacheDiskCachingTier.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/src/main/java/org/opensearch/common/cache/tier/EhCacheDiskCachingTier.java b/server/src/main/java/org/opensearch/common/cache/tier/EhCacheDiskCachingTier.java index 44e56072c4941..f8aedbe5314de 100644 --- a/server/src/main/java/org/opensearch/common/cache/tier/EhCacheDiskCachingTier.java +++ b/server/src/main/java/org/opensearch/common/cache/tier/EhCacheDiskCachingTier.java @@ -133,11 +133,7 @@ private EhCacheDiskCachingTier(Builder builder) { close(); cacheManager = buildCacheManager(); this.cache = buildCache(Duration.ofMillis(expireAfterAccess.getMillis()), builder); - - // IndicesRequestCache gets 1%, of which we allocate 5% to the keystore = 0.05% - // TODO: how do we change this automatically based on INDICES_CACHE_QUERY_SIZE setting? - //Setting keystoreSizeSetting = Setting.memorySizeSetting(builder.settingPrefix + ".tiered.disk.keystore_size", "0.05%"); - //this.keystore = new RBMIntKeyLookupStore(keystoreSizeSetting.get(this.settings).getBytes()); + long keystoreMaxWeight = builder.keystoreMaxWeightInBytes; this.keystore = new RBMIntKeyLookupStore(keystoreMaxWeight); }