Skip to content

[Backport 7.x] Fix memory leak in DLS bitset cache#50946

Merged
tvernum merged 1 commit intoelastic:7.xfrom
tvernum:backport/7.x/50635-Fix-memory-leak-in
Jan 14, 2020
Merged

[Backport 7.x] Fix memory leak in DLS bitset cache#50946
tvernum merged 1 commit intoelastic:7.xfrom
tvernum:backport/7.x/50635-Fix-memory-leak-in

Conversation

@tvernum
Copy link
Copy Markdown
Contributor

@tvernum tvernum commented Jan 14, 2020

The Document Level Security BitSet cache stores a secondary "lookup
map" so that it can determine which cache entries to invalidate when
a Lucene index is closed (merged, etc).

There was a memory leak because this secondary map was not cleared
when entries were naturally evicted from the cache (due to size/ttl
limits).

This has been solved by adding a cache removal listener and processing
those removal events asyncronously.

Backport of: #50635

The Document Level Security BitSet cache stores a secondary "lookup
map" so that it can determine which cache entries to invalidate when
a Lucene index is closed (merged, etc).

There was a memory leak because this secondary map was not cleared
when entries were naturally evicted from the cache (due to size/ttl
limits).

This has been solved by adding a cache removal listener and processing
those removal events asyncronously.

Backport of: elastic#50635
@tvernum tvernum merged commit 90ba779 into elastic:7.x Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant