Bug 57910 - CSV DataSet thread and thread group sharing might not work due to identityHashCode
Summary: CSV DataSet thread and thread group sharing might not work due to identityHas...
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.13
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-09 10:13 UTC by Vladimir Sitnikov
Modified: 2015-05-09 10:13 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Sitnikov 2015-05-09 10:13:50 UTC
CSVDataSet uses identityHashCode to make "unique" id for thread group and thread: https://github.com/apache/jmeter/blob/aa210850885837e7f9f58c49e0a5f503a7eb4cca/src/components/org/apache/jmeter/config/CSVDataSet.java#L166-170

In fact it does not always work, since identityHashCodes could return duplicate values for different objects.

Even codes for thread group and thread could be the same.

Something more unique should be used to implement "share mode".