Skip to content

Commit b5a9d34

Browse files
add keys to clean
Signed-off-by: Kiran Prakash <awskiran@amazon.com>
1 parent 6cdeaab commit b5a9d34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/java/org/opensearch/indices/IndicesRequestCache.java

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ public final class IndicesRequestCache extends AbstractLifecycleComponent
140140
private final static long BASE_RAM_BYTES_USED = RamUsageEstimator.shallowSizeOfInstance(Key.class);
141141

142142
private final ConcurrentMap<CleanupKey, Boolean> registeredClosedListeners = ConcurrentCollections.newConcurrentMap();
143+
private final Set<CleanupKey> keysToClean = ConcurrentCollections.newConcurrentSet();
143144
private final ByteSizeValue size;
144145
private final TimeValue expire;
145146
private final ICache<Key, BytesReference> cache;

0 commit comments

Comments
 (0)