Description
if (releaseBlocks) { keysToRelease = Collections.newSetFromMap(new ConcurrentHashMap<BlockCacheKey,Boolean>(1024, 0.75f, 512)); blockCache.setOnRelease(new OnRelease() { @Override public void release(BlockCacheKey key) { keysToRelease.remove(key); } }); }
If we're using the global block cache option and create multiple directories using the same factory, we will lose the release hook for the first directory. I think we can verify that by creating a server with multiple cores.
Attachments
Issue Links
- relates to
-
SOLR-9284 The HDFS BlockDirectoryCache should not let it's keysToRelease or names maps grow indefinitely.
-
- Resolved
-