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
IMap entry eviction issue #9095
Comments
Hi @pramodterdale, what was your version? Can you test it with latest version 3.7.2? |
Hi @pramodterdale, First of all, let me clarify some terms. In hazelcast parlance, expiration and eviction are two different things. Eviction is needed to free memory according to size based policies like map-size or memory-size etc. Expiration is needed to determine life-span of an entry. If your goal is freeing memory you should configure eviction. In your case, there is no eviction defined since it is NONE --> Btw, i did a test with your given configuration, all entries were swept eventually. Seems no problem. |
It does not happen every time and unfortunately i did not see any pattern as well, the volume of data is high about 5k/sec insert, update or delete any of these combinations and the process i ran for couple of hours when i saw this behavior. I will try the options you have specified in above comments and see if same behavior occurs. Thanks |
any update? |
The above mentioned settings are working fine but still there is a delay, one more thing i noticed is the sweeper task/thread is slow in processing, is there any way to increase number of sweeper tasks/threads, if yes what is the property that i can use..? |
why do you think it is slow? |
Hi, as explained by Ahmet expired entries are not accessible as specified in the expiration interval, however physically they might be removed later. this is working as designed. |
I am using IMap to store huge amount of data and each key has specified time-to-live, but some of the keys are not getting evicted at all even after it passed the time to live value. These keys stays forever, so when i check the map size progarmatically it shows there are entries in the map, same is shown in mancenter but when i try to get the list of keys or values nothing comes back. One more observation is that i have backup enabled with count 1, but for these entries there is no backup as well. I have below properties in hazelcast.xml
Code to add messages into the map
I have registered the EntryListener for eviction and doing the final activity on evicted entries, most of the entries are getting evicted as expected but some entries are never getting evicted. The final processed enrties are less than total input entries and missing count exactly matches with the map entry size at the end. What could be wrong, why are not all the messages are getting evicted. Am i missing somthing? Attaching the mancenter screenshot
The output is
The text was updated successfully, but these errors were encountered: