[MDEV-2434] LP:634955 - ma_blockrec.c:3932: _ma_update_at_original_place: Assertion `blocks->count > 1 || ((new_row->total_length) > (share->base.min_block_length) ? (new_row->total_length) : (share->base.min_block_length)) <= length_on_head_page' on Aria recovery Created: 2010-09-10  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 LPexportBug634955.xml     Zip Archive LPexportBug634955_var-bug634955.zip    

 Description   

When using maria_read_log to recover from an empty datadir, maria_read_log reported the following:

The transaction log starts from lsn (1,0x2007)
TRACE of the last maria_read_log
/home/buildbot/rqg-buildbot-slave/rqg-weekend/build/mysql-test//../storage/maria/maria_read_log: Maria engine: starting recovery
recovered pages: 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% (16.1 seconds); transactions to roll back: 1maria_read_log: ma_blockrec.c:3932: _ma_update_at_original_place: Assertion `blocks->count > 1 || ((new_row->total_length) > (share->base.min_block_length) ? (new_row->total_length) : (share->base.min_block_length)) <= length_on_head_page' failed.

bzr version-info:

revision-id: <email address hidden>
date: 2010-09-10 02:42:12 +0300
build-date: 2010-09-10 17:06:05 +0300
revno: 2928
branch-nick: 5.1

RQG command line:

/home/buildbot/randgen/runall.pl \
--queries=1M \
--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=30 \
--threads=10 \
--rows=10000 \
--mask-level=2 \
-mysqld=-loose-maria-group-commit=hard \
-mysqld=-loose-maria_group_commit_interval=0 \
-mysqld=-maria-checkpoint-interval=120 \
-mysqld=-maria-block-size=4K \
--mask=14207 \
--queries=100000000 \
--mask=14207 \
--seed=time \
--basedir=. \
--vardir=/home/buildbot/rqg-buildbot-slave/rqg-weekend/vardir-maria_recovery_weekend/current \
--grammar=conf/engines/varchar.yy \
--gendata=conf/engines/varchar.zz



 Comments   
Comment by Philip Stoev (Inactive) [ 2010-09-10 ]

Re: ma_blockrec.c:3932: _ma_update_at_original_place: Assertion `blocks->count > 1 || ((new_row->total_length) > (share->base.min_block_length) ? (new_row->total_length) : (share->base.min_block_length)) <= length_on_head_page' on Aria recovery

Comment by Philip Stoev (Inactive) [ 2010-09-10 ]

datadir, logs, etc.
LPexportBug634955_var-bug634955.zip

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

Re: ma_blockrec.c:3932: _ma_update_at_original_place: Assertion `blocks->count > 1 || ((new_row->total_length) > (share->base.min_block_length) ? (new_row->total_length) : (share->base.min_block_length)) <= length_on_head_page' on Aria recovery
Still repeatable with

revision-id: sergii@pisem.net-20100928164723-z1je1n4525knvk2s
date: 2010-09-28 18:47:23 +0200
build-date: 2010-10-02 11:19:54 +0300
revno: 2872
branch-nick: 5.2
------------------------------------------------------------
revno: 2872
committer: Sergei Golubchik <sergii@pisem.net>
branch nick: 5.2
timestamp: Tue 2010-09-28 18:47:23 +0200
message:
fixes for gcc 4.5

Comment by Michael Widenius [ 2010-11-03 ]

Re: ma_blockrec.c:3932: _ma_update_at_original_place: Assertion `blocks->count > 1 || ((new_row->total_length) > (share->base.min_block_length) ? (new_row->total_length) : (share->base.min_block_length)) <= length_on_head_page' on Aria recovery
This issue should be fixed by my 2 latest pushes to 5.1
(I have run the test case for several hours without any failures).

Comment by Rasmus Johansson (Inactive) [ 2010-12-17 ]

Launchpad bug id: 634955

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