[Bug] Unexpected session expiration behavior on ARM64 architecture (Concurrency Issue) #2447
aschwarte10
started this conversation in
General
Replies: 1 comment 13 replies
-
|
Thank you for your report. |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Search before asking
Environment
Hi all,
in this ticket we want to share information about a potential concurrency issue in Shiro's DefaultWebSessionManager and open a discussion.
In our application we are using Shiro as the Security Framework together with Pac4j. We recently received issue reports about unexpected session expirations at random intervals.
Our technical team followed up and was able to reproduce the behavior with a specific HTTP workload against our application, basically firing a high number of requests and at some point it occurs.
We are only seeing the session expiration issue in ARM64 environments, i.e. we have never faced such errors on Intel or AM64 architectures so far.
Some technical notes:
Our solution in our application is to switch to the ServletContainerSessionManager
As Shiro is a widely used framework, we are curious if the session expiration issue also occurred to others and also what the cause can be.
Please let us know if additional information is required.
Shiro version
2.0.5
(happens also in 2.0.6)
What was the actual outcome?
The error expresses with the following exception trace:
Note that when we face the exception the "last access time" is always equal to the "current time".
What was the expected outcome?
No unexpected ession expiration behavior.
How to reproduce
We have a JMeter workload running a high number of requests (with concurrency) using the same session. At some point our workload starts to fail.
Debug logs
No response
Beta Was this translation helpful? Give feedback.
All reactions