Skip to content

Remove use of recycled set in filters eviction #7012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

kimchy
Copy link
Member

@kimchy kimchy commented Jul 24, 2014

No description provided.

@@ -167,6 +166,8 @@ public void onRemoval(RemovalNotification<WeightedFilterCache.FilterCacheKey, Do
*/
class ReaderCleaner implements Runnable {

private final ObjectOpenHashSet<Object> keys = ObjectOpenHashSet.newInstance();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it thread-safe? If the cleanup takes very long I think this set might be used by two threads at the same time?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, another cleanup is never scheduled until the first one ends

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you just leave a comment about it?

@jpountz
Copy link
Contributor

jpountz commented Jul 24, 2014

LGTM

@kimchy kimchy closed this in eb37a59 Jul 24, 2014
kimchy added a commit that referenced this pull request Jul 24, 2014
@jpountz jpountz removed the review label Jul 29, 2014
@kimchy kimchy deleted the remove_recycler_set branch August 18, 2014 22:18
@clintongormley clintongormley changed the title remove use of recycled set in filters eviction Internal: Remove use of recycled set in filters eviction Sep 8, 2014
@clintongormley clintongormley changed the title Internal: Remove use of recycled set in filters eviction Remove use of recycled set in filters eviction Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants