[MDEV-3542] LP:728930 - Aria double recovery failure "Found row where the auto_increment column has the value 0" 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
Reporter: Philip Stoev (Inactive) Assignee: Michael Widenius
Resolution: Not a Bug Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug728930.xml    

 Description   

When executing "double" recovery via maria_read_log, maria_chk reports the following:

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

This was never seen before in straightforward recovery tests. "Double" recovery means that the initial run of maria_read_log is killed -9 partway through the procedure and a new run of maria_read_log is performed.

Please pull from lp:randgen before you run the test.

RQG command line:

perl runall.pl -grammar=conf/examples/example.yy --engine=Maria --basedir=/home/philips/bzr/maria-5.1 --duration=30 --reporter=AriaDoubleRecovery --mysqld=maria-checkpoint-interval=0 --mysqld=-safe-mode

in approximately 50% of the cases, maria_chk will report

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



 Comments   
Comment by Michael Widenius [ 2011-06-12 ]

Re: Aria double recovery failure "Found row where the auto_increment column has the value 0"
The warning comes from the following query:

UPDATE `DD` SET `pk` = 0 WHERE `col_datetime_nokey` < 3 LIMIT 0

This set the auto_increment value to 0, which causes a warning from aria_chk as it assumes that this is something that you should never do.

The table is still correct and usable, but one will get a warning for the above row.

Suggested fix: Don't set pk to 0

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

Launchpad bug id: 728930

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