[jboss-jira] [JBoss JIRA] (WFLY-6294) mod_cluster session drain wait does not end
Aaron Ogburn (JIRA)
issues at jboss.org
Fri Feb 26 14:43:00 EST 2016
[ https://issues.jboss.org/browse/WFLY-6294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aaron Ogburn updated WFLY-6294:
-------------------------------
Steps to Reproduce:
-Run ha profile with an increased session drain stop timeout:
{code}
<mod-cluster-config advertise-socket="modcluster" proxies="modclusterproxy" stop-context-timeout="300" connector="default" session-draining-strategy="ALWAYS">
{code}
-create a session in an app
-stop jboss
-invalidate that session
-note shutdown drain wait doesn't end
was:
-Run ha profile with an increased session drain stop timeout:
{code}
<mod-cluster-config advertise-socket="modcluster" proxies="modclusterproxy" stop-context-timeout="300" connector="default" session-draining-strategy="ALWAYS">
{code}
-create a session in an app
-start jboss stop
-invalidate that session
-note shutdown drain wait doesn't end
> mod_cluster session drain wait does not end
> -------------------------------------------
>
> Key: WFLY-6294
> URL: https://issues.jboss.org/browse/WFLY-6294
> Project: WildFly
> Issue Type: Bug
> Components: Clustering
> Affects Versions: 10.0.0.Final
> Reporter: Aaron Ogburn
> Assignee: Paul Ferraro
>
> The mod_cluster session drain wait is not ending as expected. mod_cluster adds a session listener to be notified of session destruction. That is fired appropriately, but when the listener is invoked, the infinispan session manager still reports the session as active. Thus, this drain loop doesn't end after the notify because it still sees the active session:
> {code}
> while ((remainingSessions > 0) && (noTimeout || (timeout > 0))) {
> ModClusterLogger.LOGGER.drainSessions(remainingSessions, context.getHost(), context);
> listener.wait(noTimeout ? 0 : timeout);
> current = System.currentTimeMillis();
> timeout = end - current;
> remainingSessions = context.getActiveSessionCount();
> }
> {code}
> Can the listeners be invoked when the session is fully removed and no longer considered active?
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list