jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60563] New: 2x CSV Dataset with same filename concurrently pick lines
Date Mon, 09 Jan 2017 15:52:13 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60563

            Bug ID: 60563
           Summary: 2x CSV Dataset with same filename concurrently pick
                    lines
           Product: JMeter
           Version: 3.1
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: loisel.jerome@gmail.com
  Target Milestone: ---

1 - When creating several csv variables using the same file an unexpected
behavior happens.
Let's consider two variables named login1 and login2 using the same file
(sharing mode on "all threads").
During the first iteration login1 will use the first line of the file and
login2 will use the second line of the file. As if they were two different
threads requesting values from this file.

2 - If I setup the same variables with two identical files named differently
both variables will use the first line of the csv.

The 2nd behavior seems normal while the 1st one seems like a bug. 2x CSV
Datasets are concurrently reading the same file when filename is the same since
only a single Reader is shared between them.

When looking at the code, it seems like the filename is used a key for a
caching system which keeps the BufferedReader. (FileServer.getReader)

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message