https://bz.apache.org/bugzilla/show_bug.cgi?id=60830
Bug ID: 60830
Summary: Timestamps in CSV file get corrupted due to sharing a
SimpleDateFormatter across threads.
Product: JMeter
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
The java.text.SimpleDateFormatter class is not thread safe, but jmeter reuses a
SimpleDateFormatter instance across threads. As a result, the saved timestamp
is sometimes incorrect. Here is the stack trace of one of the offending
locations:
org.apache.jmeter.save.CSVSaveService.resultToDelimitedString(CSVSaveService.java:868)
org.apache.jmeter.save.CSVSaveService.resultToDelimitedString(CSVSaveService.java:784)
org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:559)
org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:67)
org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:819)
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:493)
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:410)
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:241)
java.lang.Thread.run(Thread.java:745)
--
You are receiving this mail because:
You are the assignee for the bug.