Bug #40156 mtr should give sensible error message on disk full
Submitted: 19 Oct 2008 19:50 Modified: 19 Jun 2009 11:27
Reporter: Sven Sandberg Email Updates:
Status: Won't fix Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S7 (Test Cases)
Version:5.1 OS:Any
Assigned to: Bjørn Munch CPU Architecture:Any
Tags: disk full, mtr

[19 Oct 2008 19:50] Sven Sandberg
Description:
When the disk becomes full, mtr will write a truncated query log to disk and cause a result mistmatch.

How to repeat:
See, e.g., the failure in main.ctype_latin1_de on https://intranet.mysql.com/secure/pushbuild/showpush.pl?dir=bzr_mysql-6.0-rpl&order=67 sol10-amd64-a/embedded . The previous failure in main.autocommit_func contains log messages showing that the disk was full, and the failure in ctype_latin1_de is just due to a truncated query log.

Suggested fix:
mtr should check return values from whatever functions it uses to write to disk. On error, it should check if the disk is full; if it is, just print "disk full" and abort all tests.
[19 Jun 2009 11:27] Bjørn Munch
There are lots of places we write to disk, trying to handle this sensibly in all cases is IMNSHO not worth the effort and cost.