You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling IMap.removeAll without index updates last access time for all records. As a result expiration time is also updated when maxIdle eviction is used. If removeAll is called frequently then records are never removed by maxIdle.
Hazelcast version: 3.12.2
Attached unit test demonstrating this behaviour.
This is a big issue in our case. We use Hazelcast (30 nodes) to store web sessions.After upgrading to 3.12.2 from 3.8 sessions were not evicted anymore and started to pile up in production. We had to run external session cleanup job till we figured out what is causing it. We call removeAll when user requests to logout all sessions. It is frequent enough that sessions never expire with this bug.
@iseebirdsfly thanks for the excellent bug report & reproducer. PRs fixing this issue have been created; I will update this issue once they are reviewed.
Calling IMap.removeAll without index updates last access time for all records. As a result expiration time is also updated when maxIdle eviction is used. If removeAll is called frequently then records are never removed by maxIdle.
Hazelcast version: 3.12.2
Attached unit test demonstrating this behaviour.
IMapRemoveAllTest.java.zip
The text was updated successfully, but these errors were encountered: