Bug 1316949
| Summary: | Active-sessions can exceed property MAX_ACTIVE_SESSIONS | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Michael Cada <mcada> | ||||||||
| Component: | Web | Assignee: | Enrique Gonzalez Martinez <egonzale> | ||||||||
| Status: | CLOSED WONTFIX | QA Contact: | Radim Hatlapatka <rhatlapa> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 6.4.7 | CC: | bbaranow, egonzale, rmaucher | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2016-03-21 07:07:31 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Michael Cada
2016-03-11 14:02:26 UTC
Created attachment 1135260 [details]
Simple web app for session counting
It is a race condition in the StandardManager class when the session is created, the manager tries to calculate the number of active sessions https://source.jboss.org/browse/JBossWeb/branches/7.5.x/src/main/java/org/apache/catalina/session/StandardManager.java?hb=true#to295 and after that it creates the session adding it to the session map https://source.jboss.org/browse/JBossWeb/branches/7.5.x/src/main/java/org/apache/catalina/session/StandardManager.java?hb=true#to300 This is the cause of the race condition. this makes possible to create more sessions that the property MAX_ACTIVE_SESSIONS Created attachment 1136458 [details]
patch 7.5.x
guarding the concurrent block for avoiding the race condition.
|