[MDEV-2794] LP:728919 - maria_chk should fail on all detected corruptions Created: 2011-03-04  Updated: 2015-02-02  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: Philip Stoev (Inactive) Assignee: Michael Widenius
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug728919.xml    

 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.



 Comments   
Comment by Michael Widenius [ 2011-05-11 ]

Re: maria_chk should fail on all detected corruptions
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

Comment by Rasmus Johansson (Inactive) [ 2011-06-20 ]

Launchpad bug id: 728919

Generated at Thu Feb 08 06:44:15 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.