Terminate test on miscompare when hashCheck is true?
Is there a flag or parameter to direct COSBench to immediately terminate a test if a file checksum miscompare is found when hashCheck is true?
I modified processBytes() in driver/random/RandomInputStream to inject an invalid checksum for a file during a test. I noticed that the error was logged, and the job continued on, concluding with cleanup and dispose. All artifacts were then gone. Since this could indicate a serious error with my Swift cluster if a true miscompare was found, I would like the job to immediately terminate with no cleanup either. We could then debug the cluster in the exact environment and state to aid in the investigation.
I modified driver/operator/Reader to throw AbortedException if validateChecksum() failed. But that still allowed the other threads to continue working, and with cleanup. I then tried a System.exit(), but that aborted the Driver before the logs could be flushed to disk, and was even worse than my first attempt.
Is there a method or parameter to accomplish this?