]
Paul Ferraro updated WFLY-9428:
-------------------------------
Summary: Distributed shared web sessions can passivate prematurely (was: Distributed
shared web sessions can expire prematurely)
Distributed shared web sessions can passivate prematurely
---------------------------------------------------------
Key: WFLY-9428
URL:
https://issues.jboss.org/browse/WFLY-9428
Project: WildFly
Issue Type: Bug
Components: Clustering
Affects Versions: 10.1.0.Final, 11.0.0.CR1
Reporter: Paul Ferraro
Assignee: Paul Ferraro
Priority: Critical
When an EAR is configured to share web sessions across WARs, each WAR deployment will use
the same distributed session manager factory instance. However, each deployment will use
a separate session manager instance (created from the shared factory). Since session
expiration and passivation is managed per session manager, it is possible that a session
is scheduled to expire on one manager, regardless of whether it is subsequently referenced
by another manager, and can thus expire prematurely.
To fix this, each session manager instance must also share session expiration/eviction
schedulers, where each manager registers deployment specific listeners on
SessionManager.start() and unregisters on stop().