maria_chk should fail on all detected corruptions

Bug #728919 reported by Philip Stoev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MariaDB
Fix Released
Low
Michael Widenius

Bug Description

Now that maria_chk is used for recovery testing, it should have an option to fail with a suitable exit code on all database corruptions. Currently, some are just printed as warnings, such as:

maria_chk: warning: Found row where the auto_increment column has the value 0

and are thus not detectable during automatic test runs. The code has the following comment:

        /* Don't count this as a real warning, as maria_chk can't correct it */

such logic is not true when it comes to automatic recovery testing. There are other instances in the code where the same trick is used to prevent maria_chk from reporting a proper exit code.

Related branches

Changed in maria:
assignee: nobody → Michael Widenius (monty)
milestone: none → 5.1
Revision history for this message
Michael Widenius (monty) wrote :

I am fixing that in 5.2 aria_chk will return 1 if there was any warnings and 2 if there was any fatal errors

Changed in maria:
status: New → In Progress
importance: Undecided → Low
Michael Widenius (monty)
Changed in maria:
status: In Progress → Fix Committed
Michael Widenius (monty)
Changed in maria:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.