Bug 51942

Summary: Synchronisation issue on CacheManager when Concurrent Download is used
Product: JMeter - Now in Github Reporter: Philippe Mouawad <p.mouawad>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: major CC: p.mouawad
Priority: P2    
Version: 2.5.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Fix to issue
Test plan

Description Philippe Mouawad 2011-10-03 17:25:49 UTC
Created attachment 27678 [details]
Fix to issue

Hello,
CacheManager#threadCache is a InheritableThreadLocal shared by child thread that sample concurrent downloaded resources.
So underlying Map is shared and can therefore be corrupted.

Regards
Philippe Mouawad
Comment 1 Philippe Mouawad 2011-10-03 17:27:26 UTC
Created attachment 27679 [details]
Test plan

Put a breakpoint in CacheManager line 177 you will see cache is shared between all Executor threads.

Regards
Philippe
Comment 2 Sebb 2011-10-04 17:09:45 UTC
URL: http://svn.apache.org/viewvc?rev=1178867&view=rev
Log:
Bug 51942 - Synchronisation issue on CacheManager when Concurrent Download is used

Modified:
   jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
   jakarta/jmeter/trunk/xdocs/changes.xml
Comment 3 The ASF infrastructure team 2022-09-24 20:37:47 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2577