Skip to content

Commit a06b0e1

Browse files
committed
WIP hardcode the cache size to 48mb
1 parent 5ff482c commit a06b0e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/accesscontrol/DocumentSubsetBitsetCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public DocumentSubsetBitsetCache(Settings settings, ThreadPool threadPool) {
138138
this.cleanupExecutor = cleanupExecutor;
139139

140140
final TimeValue ttl = CACHE_TTL_SETTING.get(settings);
141-
this.maxWeightBytes = CACHE_SIZE_SETTING.get(settings).getBytes();
141+
this.maxWeightBytes = ByteSizeValue.ofMb(48).getBytes();
142142
this.bitsetCache = CacheBuilder.<BitsetCacheKey, BitSet>builder()
143143
.setExpireAfterAccess(ttl)
144144
.setMaximumWeight(maxWeightBytes)

0 commit comments

Comments
 (0)