https://issues.apache.org/bugzilla/show_bug.cgi?id=52284
--- Comment #4 from Sebb <[email protected]> 2011-12-11 11:38:39 UTC --- Function references are only instantiated once per occurrence in the test Plan. So if a sampler references StringFromFile, all threads will use the same instance of the function. This allows the same data file to be shared between threads. The file is opened once, on the first reference, so will use whatever thread number happens to run the first sample. This is similar to how the global counter (IterationCounter) works. StringFromFile was designed to share the data across threads. CSV Dataset can be used for per-thread data files. It would be possible to implement a per-thread version of StringFromFile by using ThreadLocal storage for the file details. However I'm not sure there's a good use case for it, given that we already have CSV Dataset. I'll update the Javadoc and function desc. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
