Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
-
None
Description
In the WSO2 Mashup Server [1] we use rampart to secure some backend services using UT. We ran a load test where a user logs in (the login service is secured via UT) and adds a user. When a user is added hes details are also added to the token store so that he can login too. When we ran the above scenario we got a java.util.ConcurrentModificationException. You can refer to the JIRA at [2]. The issue is that when reading the class SimpleTokenStore gets a iterator on a map and then when a user is added details are added to this map. When this happens concurrently the above issue occurs.
[1] http://wso2.org/projects/mashup
[2] https://wso2.org/jira/browse/MASHUP-789