Skip to content
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

ISPN-12933 Remove Bloom filters map in CacheRequestProcessor #9229

Closed

Conversation

danberindei
Copy link
Member

@danberindei danberindei requested a review from wburns April 12, 2021 08:56
BloomFilter<byte[]> priorFilter = bloomFilters.putIfAbsent(header.cacheName, bloomFilter);
assert priorFilter == null;
boolean filterAdded = cacheInfo.setBloomFilter(bloomFilter);
assert filterAdded;
Copy link
Member Author

Choose a reason for hiding this comment

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

@wburns I kept the logic here, but it doesn't feel right to me: addClientListener will be called multiple times per cache, at least once for each near cache client connecting to this server.

@wburns
Copy link
Member

wburns commented Apr 12, 2021

Unless, I am missing something this change will not work. The reason is we need to store a bloom filter per connection per cache. The cache info is stored for all connections per cache. Otherwise, you will have multiple clients bloom filters conflicting with each other.

@danberindei
Copy link
Member Author

You're right Will, I didn't realize there was a separate CacheRequestProcessor per connection

@danberindei danberindei deleted the ISPN-12933_bloom_cacheinfo branch May 7, 2021 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants