Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Normal
Description
Cassandra stress relies on a tmp file with the stress output so it can parse it and put it the the graph html.
However the contents of this file is now broken:
Sleeping 2s...Sleeping 2s... Sleeping 2s... Warming up WRITE with 50000 iterations...Warming up WRITE with 50000 iterations... Warming up WRITE with 50000 iterations... Running WRITE with 500 threads 10 secondsRunning WRITE with 500 threads 10 seconds Running WRITE with 500 threads 10 seconds ...
This is as we create a
MultiPrintStream
that inherits from
PrintWriter
and then delegate the call to super as well as a list of other PrintWriters
The call to super for println comes back into our print method so every line gets logged multiple times as we do the for (PrintStream s: newStreams) many times.
We can change this to use composition and use our own interface if we want to use a composite for logging the results
This results in the parsing of this file not quite working and the aggregate stats not working in produced graphs.