[
https://issues.jboss.org/browse/WFLY-7229?page=com.atlassian.jira.plugin....
]
Michał Nowakowski commented on WFLY-7229:
-----------------------------------------
I'm not sure why you need to disable server-side invalidation.
It was coded because two standard mechanisms you mentioned were considered not sufficient.
I'm not saying they didn't work - they did and still do, but we wished to free
resources faster than they can. I didn't say that earlier, but there are actually +30
sessions per user to wipe (+30 apps we thought we needed coordinated logout for, to free
resources).
Now, in WF 10.1 (and only there) it's logging errors. That's why I think I need to
disable it and try to live without, until the problem is resolved. Thankfully, we
don't need to kill the sessions instantly for this logout to take effect. It's
only a matter of lingering resources. I'm still not sure, but we hopefully have enough
RAM available.
If the session is later accessed by another node, the thread
initiated on the first node will still expire the session
If I understood you right - then this is quite possibly what I want to happen.
Undeploy of the application will not kill threads started in this
way, thus your application will leak its classloader
Not a concern for me, that code is never undeployed.
WFLYCLWEBUT0001 for server-side invalidated sessions
----------------------------------------------------
Key: WFLY-7229
URL:
https://issues.jboss.org/browse/WFLY-7229
Project: WildFly
Issue Type: Bug
Components: Clustering, Web (Undertow)
Affects Versions: 10.1.0.Final
Environment: Happens whenever <distributable/> is used in web.xml, both in
standalone and domain modes.
Reporter: Michał Nowakowski
Assignee: Paul Ferraro
Attachments: stacktrace_01.txt, stacktrace_02.txt, stacktrace_03.txt,
testPortlet.tar.gz
Attached is a simple webapp (pardon the name) with a single servlet "/main",
that does the following:
- a session is assigned (or created, if none existed before)
- its details are printed and the browser is told to refresh after 20 seconds
- before the browser refreshes, the session is invalidated server-side by separate
thread.
Expected behaviour is, that WF should give the user a new session. That's indeed how
it works in standalone mode and without <distributable/> in web.xml. But in domain
mode, OR with <distributable/> added (and, possibly, full-ha profile chosen), I get
errors:
- The first stacktrace happens when the thread invalidates the session.
- The second stacktrace happens, when the browser refreshes. The user sees "Error
500".
- Then, after a minute or so, I get the last one. It then repeats periodically.
We can't upgrade from 10.0 because of this - and we know we need an upgrade because
of fixes in Infinispan.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)