Hi, I stuck with the situation where I have a child of ResultCollector and want to process resulting JTL on testEnded(), but because of buffered writing to file (which is good) I get the incomplete file. For short tests the file is empty.
In the code I found that writer field is private: https://github.com/apache/jmeter/blob/trunk/src/core/org/apache/jmeter/reporters/ResultCollector.java#L141 Also the method to flush all files is also private: https://github.com/apache/jmeter/blob/trunk/src/core/org/apache/jmeter/reporters/ResultCollector.java#L597 So I have no ability to tell JMeter to flush the file, to have its full contents available in testEnded(). I'd like either to have 'out' field as protected, or have a protected (maybe even public) method flush() to do a flush on the writer. I'm ready to create and send a patch (it's trivial), but would like to ask the team first if this is possible and which way if preferred. Thanks, Andrey
