Bug 51942 - Synchronisation issue on CacheManager when Concurrent Download is used
Summary: Synchronisation issue on CacheManager when Concurrent Download is used
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.5.1
Hardware: All All
: P2 major (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 17:25 UTC by Philippe Mouawad
Modified: 2011-10-04 17:09 UTC (History)
1 user (show)



Attachments
Fix to issue (1.02 KB, application/octet-stream)
2011-10-03 17:25 UTC, Philippe Mouawad
Details
Test plan (6.07 KB, application/xml)
2011-10-03 17:27 UTC, Philippe Mouawad
Details

Note You need to log in before you can comment on or make changes to this bug.
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