[jboss-jira] [JBoss JIRA] (WFLY-12938) Expired distributed web sessions/SFSBs not properly removed following topology change with no rehash

Paul Ferraro (Jira) issues at jboss.org
Tue Jan 7 15:10:05 EST 2020


Paul Ferraro created WFLY-12938:
-----------------------------------

             Summary: Expired distributed web sessions/SFSBs not properly removed following topology change with no rehash
                 Key: WFLY-12938
                 URL: https://issues.redhat.com/browse/WFLY-12938
             Project: WildFly
          Issue Type: Bug
          Components: Clustering
    Affects Versions: 18.0.1.Final
            Reporter: Paul Ferraro
            Assignee: Paul Ferraro


On topology change, changes to primary session ownership determine when a given member should schedule expiration of a given session, or cancel a scheduled expiration of a previously owned session. Primary ownership is determined by 2 components: the key partitioner and a consistent hash. The key partitioner determines which the segment to which a given key is assigned. A consistent hash determines which member is the primary owner of a given segment.

Rescheduling of session expiration is triggered from a data rehash event. However, when the second to last member leaves the cluster, there is no data rehash event, thus expired session owned by the leaving member are never removed. To fix this, we must also trigger rescheduling of expiration in the event of a topology change where no rehashing occurs.

This results in expired web sessions/SFSBs remaining in memory, potentially indefinitely.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list