[MDEV-2348] LP:670356 - Aria table "is marked as crashed and should be repaired" Created: 2010-11-03  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: Major
Reporter: Philip Stoev (Inactive) Assignee: Michael Widenius
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug670356.xml     Zip Archive LPexportBug670356_var-bug670356.zip    

 Description   

When executing recovery from the SMF scenario, the server reports the following:

  1. 2010-11-03T00:15:01 101103 0:15:01 [ERROR] mysqld: Table './smf2/smf_calendar_holidays' is marked as crashed and should be repaired
  2. 2010-11-03T00:15:01 101103 0:15:01 [Warning] Checking table: './smf2/smf_calendar_holidays'

The tables are positively Aria tables, created with --default-storage-engine=Aria. maria_read_log does not report any issues. There are no other error messages about corruption or zerofilling.

RQG command line:

/home/buildbot/randgen/runall.pl \
--queries=1M \
--engine=Maria \
-mysqld=-default-storage-engine=Maria \
-mysqld=-safe-mode \
-mysqld=-sync-sys=0 \
-mysqld=-log-output=file \
-mysqld=-maria_log_purge_type=at_flush \
--reporters=ErrorLog,Backtrace,Recovery,Shutdown \
--duration=240 \
--threads=20 \
--rows=10 \
--mask-level=1 \
--queries=100000000 \
--mask=50154 \
--seed=1288735776 \
-mysqld=-maria-repair-threads=2 \
-mysqld=-loose-maria-group-commit=hard \
-mysqld=-loose-maria_group_commit_interval=10 \
-mysqld=-maria-checkpoint-interval=0 \
-mysqld=-maria-block-size=4K \
-mysqld=-init-file=/home/buildbot/randgen/conf/smf/smf2.sql \
--grammar=conf/smf/smf2.yy \
--basedir=.

bzr version-info:

revision-id: <email address hidden>
date: 2010-11-02 21:01:25 +0200
build-date: 2010-11-02 22:29:06 +0200
revno: 2965
branch-nick: 5.1
------------------------------------------------------------
revno: 2965
committer: <email address hidden>
branch nick: work-maria-5.1-define
timestamp: Tue 2010-11-02 21:01:25 +0200
message:
#endif fixed.



 Comments   
Comment by Philip Stoev (Inactive) [ 2010-11-04 ]

Re: Aria table "is marked as crashed and should be repaired"
NOT reproducible with the testing cycle from Nov3th-Nov4th

revision-id: monty@askmonty.org-20101103121818-abhv16lep039d20m
date: 2010-11-03 14:18:18 +0200
build-date: 2010-11-03 15:00:40 +0200
revno: 2966
branch-nick: 5.1
------------------------------------------------------------
revno: 2966 [merge]
committer: Michael Widenius <monty@askmonty.org>
branch nick: maria-5.1
timestamp: Wed 2010-11-03 14:18:18 +0200
message:
Automatic merge
------------------------------------------------------------

Comment by Philip Stoev (Inactive) [ 2010-11-05 ]

Re: Aria table "is marked as crashed and should be repaired"
REPRODUCIBLE with the testing cycle from Nov5th. Will try to obtain the tablespace.

Comment by Philip Stoev (Inactive) [ 2010-11-16 ]

Re: Aria table "is marked as crashed and should be repaired"
Also reproducible with:

revision-id: sanja@askmonty.org-20101116103236-tp4b7wqfkhoi57nv

date: 2010-11-16 12:32:36 +0200

build-date: 2010-11-16 12:46:56 +0200

revno: 2972

branch-nick: 5.1

------------------------------------------------------------

revno: 2972

committer: sanja@askmonty.org

branch nick: work-maria-5.1-itemtype-bugs

timestamp: Tue 2010-11-16 12:32:36 +0200

message:

Fixed mess in the types.

Comment by Philip Stoev (Inactive) [ 2011-01-08 ]

Re: Aria table "is marked as crashed and should be repaired"
Still reproducible with the tree from Jan 06

Comment by Philip Stoev (Inactive) [ 2011-01-09 ]

Re: Aria table "is marked as crashed and should be repaired"
vardir before recovery, log, etc.

In this particular dataset, smf_log_group_requests is the crashed table

Comment by Philip Stoev (Inactive) [ 2011-01-09 ]

vardir before recovery, log, etc.

In this particular dataset, smf_log_group_requests is the crashed table
var-bug670356.zip
LPexportBug670356_var-bug670356.zip

Comment by Philip Stoev (Inactive) [ 2011-01-26 ]

Re: Aria table "is marked as crashed and should be repaired"
Still repeatable with

revision-id: monty@askmonty.org-20110124131940-6xh22if0cehedvbf
date: 2011-01-24 15:19:40 +0200
build-date: 2011-01-25 15:42:06 +0200
revno: 3020
branch-nick: 5.1
------------------------------------------------------------
revno: 3020
committer: Michael Widenius <monty@askmonty.org>
branch nick: maria-5.1
timestamp: Mon 2011-01-24 15:19:40 +0200
message:
Aria issues:

  • Fix for LP#700623 "Aria recovery: ma_blockrec.c:3930: _ma_update_at_original_place: Assertion `block->org_bitmap_value == _ma_bitmap_get_page_bits(info, &info->s->bitmap, page)' failed"
  • Issue was that when deleting a tail page where all index entries where full, the page was marked wrongly in the bitmap.
  • If debug_assert_if_crashed_table is set, we now crash when we find Aria corrupted.
  • Write more information if we find something wrong with the bitmap.
  • Fixed that REPAIR also can fix wrong create_rename_lsn issues (a very unlikely event)
  • Define STATE_CRASHED_FLAGS as set of all CRASHED flags (to simplify code)
Comment by Philip Stoev (Inactive) [ 2011-02-02 ]

Re: Aria table "is marked as crashed and should be repaired"
Still repeatable as before with

revision-id: monty@askmonty.org-20110130144457-v4an23g54l71zglq
date: 2011-01-30 16:44:57 +0200
build-date: 2011-02-01 22:49:52 +0200
revno: 3027
branch-nick: 5.1
------------------------------------------------------------
revno: 3027
committer: Michael Widenius <monty@askmonty.org>
branch nick: maria-5.1
timestamp: Sun 2011-01-30 16:44:57 +0200
message:
Ignore some linked files

Comment by Michael Widenius [ 2011-02-03 ]

Re: Aria table "is marked as crashed and should be repaired"
Have run test case for some hours with latest 5.1 tree without problems.
I observed and fixed a similar error when working on the test case for the previous recovery bug, so I assume this is now also fixed.

Comment by Philip Stoev (Inactive) [ 2011-02-04 ]

Re: Aria table "is marked as crashed and should be repaired"
Unforuntately this is still repeatable with the following revision:

revision-id: monty@askmonty.org-20110203140354-mjn83xnhc3yhkqhs
date: 2011-02-03 16:03:54 +0200
build-date: 2011-02-03 19:43:39 +0200
revno: 3031
branch-nick: 5.1
------------------------------------------------------------
revno: 3031
committer: Michael Widenius <monty@askmonty.org>
branch nick: maria-5.1
timestamp: Thu 2011-02-03 16:03:54 +0200
message:
Added missing header file strings_def.h to dist

RQG command lines:

/home/buildbot/randgen/runall.pl \
--queries=1M \
--engine=Maria \
-mysqld=-default-storage-engine=Maria \
-mysqld=-safe-mode \
-mysqld=-loose-debug-assert-if-crashed-table \
-mysqld=-sync-sys=0 \
-mysqld=-log-output=file \
-mysqld=-maria_log_purge_type=at_flush \
--reporters=ErrorLog,Backtrace,Recovery,Shutdown \
--duration=30 \
--threads=10 \
--rows=100 \
--mask-level=0 \
-mysqld=-loose-maria-group-commit=hard \
-mysqld=-loose-maria_group_commit_interval=0 \
-mysqld=-maria-checkpoint-interval=1 \
-mysqld=-maria-block-size=16K \
--queries=100000000 \
--mask=5570 \
--seed=1296764661 \
--basedir=. \
-mysqld=-init-file=/home/buildbot/randgen/conf/smf/smf2.sql \
--grammar=conf/smf/smf2.yy

and

runall.pl \
--queries=1M \
--engine=Maria \
-mysqld=-default-storage-engine=Maria \
-mysqld=-safe-mode \
-mysqld=-loose-debug-assert-if-crashed-table \
-mysqld=-sync-sys=0 \
-mysqld=-log-output=file \
-mysqld=-maria_log_purge_type=at_flush \
--reporters=ErrorLog,Backtrace,Recovery,Shutdown \
--duration=120 \
--threads=20 \
--rows=10000 \
--mask-level=0 \
-mysqld=-loose-maria-group-commit=hard \
-mysqld=-loose-maria_group_commit_interval=0 \
-mysqld=-maria-checkpoint-interval=1 \
-mysqld=-maria-block-size=4K \
--queries=100000000 \
--mask=42425 \
--seed=1296796973 \
--basedir=. \
-mysqld=-init-file=/home/buildbot/randgen/conf/smf/smf2.sql \
--grammar=conf/smf/smf2.yy

Comment by Michael Widenius [ 2011-07-18 ]

Re: Aria table "is marked as crashed and should be repaired"
I have recently fixed several similar cases in Aria in 5.2
I did run the last test for some time s to verify this and as I got no errors I will close this bug report.

Comment by Rasmus Johansson (Inactive) [ 2011-07-18 ]

Launchpad bug id: 670356

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