Bug 51942 - Synchronisation issue on CacheManager when Concurrent Download is used
Synchronisation issue on CacheManager when Concurrent Download is used
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: HTTP
2.5.1
All All
: P2 major (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
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