-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Entries are not cleaned when using weakValues #111
Comments
I'm sorry to hear this. I ran your test and see the same surprising behavior. Yet when I debug ReferenceTest#put(), I do see some collection occurring. I'm not sure off-hand what recent change would cause a regression for your test case. I'll keep exploring and if we find the cause, try to have a bug fix released by Sunday evening. |
Sorry, I accidentally debugged the counts with the Guava provider which of course worked. The Caffeine provider passed because the assertion's count isn't restrictive enough, despite the cache not having evicted any entries. As you said, if I manually |
I found the problem in This was incorrectly modified to not call The maintenance work should still occur after a number of reads exceeds a threshold. I'd like to shore up the |
Hi. Good to see that the problem has been located, we will revert to 2.3.0 meanwhile since that version does not seem to be affected by this issue. Thank you for your swift response for the issue. |
Yes, it looks like I introduced it in 2.3.1 only. I'm working on improvements to the unit tests and hope to release this evening, but it is already getting late. I might do so tomorrow. |
Released. Sorry about any trouble this caused and thanks for understanding. |
We faced a memory leak after upgrading caffeine from 2.2.7 to 2.3.1. It seems that cache entries are not evicted when using weak values. Following test is working on 2.2.7 but eats all memory with 2.3.1:
Eviction count stays at zero on 2.3.1 while growing fast on 2.2.7. If cache is cleaned up explicitly from outside, entries are evicted.
The text was updated successfully, but these errors were encountered: