Bug 60758 - HTTP(s) Test Script Recorder : Number request may generate duplicate numbers
Summary: HTTP(s) Test Script Recorder : Number request may generate duplicate numbers
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.9
Hardware: All All
: P2 minor (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-21 16:20 UTC by UbikLoadPack support
Modified: 2017-02-21 19:44 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description UbikLoadPack support 2017-02-21 16:20:09 UTC
Under certain conditions and looking at code :
- https://github.com/apache/jmeter/blob/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/AbstractSamplerCreator.java#L97

- https://github.com/apache/jmeter/blob/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/DefaultSamplerCreator.java#L279

If 2 threads enter at the same time computeSamplerName, you can end up using twice the result of getRequestNumber().
Comment 1 UbikLoadPack support 2017-02-21 19:44:37 UTC
Author: pmouawad
Date: Tue Feb 21 19:44:19 2017
New Revision: 1783920

URL: http://svn.apache.org/viewvc?rev=1783920&view=rev
Log:
Bug 60758 - HTTP(s) Test Script Recorder : Number request may generate duplicate numbers
Bugzilla Id: 60758

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/AbstractSamplerCreator.java
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/DefaultSamplerCreator.java
    jmeter/trunk/xdocs/changes.xml