Gabriel Lavoie created WFLY-6591:
------------------------------------
Summary: Memory leak of expired session in Infinispan cache with optimistic
locking
Key: WFLY-6591
URL:
https://issues.jboss.org/browse/WFLY-6591
Project: WildFly
Issue Type: Bug
Components: Clustering
Affects Versions: 10.0.0.Final, 10.1.0.Final
Reporter: Gabriel Lavoie
Assignee: Paul Ferraro
When using optimistic locking on the web cache, data from expired sessions is not removed
from the web cache by the
org.wildfly.clustering.web.infinispan.session.SessionExpirationScheduler and leaks
forever.
Session seems to be invalidated correctly and isn't accessible anymore.
After tracing the code,
org.wildfly.clustering.web.infinispan.session.InfinispanSessionMetaDataFactory.remove()
doesn't remove the metadata entries when "this.properties.isLockOnWrite()"
returns false (which is always the case for optimistic locking). Then in
org.wildfly.clustering.web.infinispan.session.InfinispanSessionFactory.remove(), the call
to attributesFactory.remove(id) also gets skipped.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)