https://issues.apache.org/bugzilla/show_bug.cgi?id=51919

--- Comment #10 from Philippe Mouawad <[email protected]> 
2011-10-01 12:51:27 UTC ---
Created attachment 27656
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27656
Example of ConcurrentModificationException with
Collections.synchronizedCollection

Hello Sebb,
Just to clarify what I think.
In my opinion wrapping the List with Collections.synchronizedList doesn't
protect from ConcurrentModificationException when iterator are used, see
attached example.

So Locking is necessary when Iterations are done.

This is just to say that I think my fix with ReentrantLock + ConcurrentHashMap
in JMEterVariables should fix the issue in immediate although I agree a better
long term solution is to be found.

At present, using concurrent download in a test is broken.

PS: And trust me I was not lucky regarding what I did on syncing in the past
:-). Fixes concerned high concurrent systems like ecommerce websites.
Regards
Philippe

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to