<?xml version="1.0" encoding="utf-8"?>
<launchpad-bug id="619731">
  <date_last_updated>2011-03-01 15:54:42.544691+00:00</date_last_updated>
  <api_links>
    <bug_api_link>https://api.launchpad.net/1.0/bugs/619731</bug_api_link>
    <bug_owner_link>https://api.launchpad.net/1.0/~pstoev-askmonty</bug_owner_link>
    <milestone_link>https://api.launchpad.net/1.0/maria/+milestone/5.1</milestone_link>
    <linked_branches_collection_link>https://api.launchpad.net/1.0/bugs/619731/linked_branches</linked_branches_collection_link>
    <activity_link>https://api.launchpad.net/1.0/bugs/619731/activity</activity_link>
  </api_links>
  <bug_web_link>https://bugs.launchpad.net/bugs/619731</bug_web_link>
  <owner>Philip Stoev</owner>
  <assignee>Michael Widenius</assignee>
  <milestone_title>Maria 5.1</milestone_title>
  <duplicate_link></duplicate_link>
  <duplicate_bug_id></duplicate_bug_id>
  <title>Aria recovery corruption &quot;Page 1:  Row:   1 has an extent with wrong information in bitmap&quot;</title>
  <status>Fix Released</status>
  <importance>High</importance>
  <created>2010-08-18 09:41:52.267136+00:00</created>
  <description>
<![CDATA[The following RQG command line:

perl runall.pl \
 --queries=1M \
 --engine=Maria \
 --mysqld=--log-output=file \
 --reporters=ErrorLog,Backtrace,Recovery,Shutdown \
 --duration=120 \
 --threads=20 \
 --rows=1000 \
 --mask-level=1 \
 --mysqld=--maria-repair-threads=2 \
 --mysqld=--loose-maria-group-commit=hard \
 --mysqld=--loose-maria_group_commit_interval=1 \
 --mysqld=--maria-checkpoint-interval=1 \
 --mysqld=--maria-block-size=4K \
 --grammar=conf/engines/many_indexes.yy \
 --gendata=conf/engines/many_indexes.zz \
 --mask=18168 \
 --queries=100000000 \
 --basedir=/home/philips/bzr/maria-5.1/ 

reported the following corruption on CHECK TABLE EXTENDED

'Page 1:  Row:   1 has an extent with wrong information in bitmap:  Page 192  Page_type: 2  Bitmap: 0']]>  </description>
  <activities>
    <activity datechanged="2010-08-18T09:41:52.267136+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>Philip Stoev</person>
      <message>added bug</message>
    </activity>
    <activity datechanged="2010-08-18T09:50:40.445559+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[core binary datadir https://bugs.launchpad.net/maria/+bug/619731/+attachment/1497536/+files/var-bug619731.zip]]>      </newvalue>
      <whatchanged>attachment added</whatchanged>
      <person>Philip Stoev</person>
      <message></message>
    </activity>
    <activity datechanged="2010-08-18T09:52:14.688101+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[Michael Widenius (monty)]]>      </newvalue>
      <whatchanged>maria: assignee</whatchanged>
      <person>Philip Stoev</person>
      <message></message>
    </activity>
    <activity datechanged="2010-08-18T09:52:16.907000+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[5.1]]>      </newvalue>
      <whatchanged>maria: milestone</whatchanged>
      <person>Philip Stoev</person>
      <message></message>
    </activity>
    <activity datechanged="2010-08-18T09:52:19.781226+00:00">
      <oldvalue>
<![CDATA[Undecided]]>      </oldvalue>
      <newvalue>
<![CDATA[High]]>      </newvalue>
      <whatchanged>maria: importance</whatchanged>
      <person>Philip Stoev</person>
      <message></message>
    </activity>
    <activity datechanged="2010-09-09T23:48:36.913252+00:00">
      <oldvalue>
<![CDATA[New]]>      </oldvalue>
      <newvalue>
<![CDATA[In Progress]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Michael Widenius</person>
      <message></message>
    </activity>
    <activity datechanged="2010-09-10T13:03:40.522803+00:00">
      <oldvalue>
<![CDATA[In Progress]]>      </oldvalue>
      <newvalue>
<![CDATA[Fix Released]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Michael Widenius</person>
      <message></message>
    </activity>
    <activity datechanged="2010-09-21T07:41:12.382500+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[datadir, logs, etc. https://bugs.launchpad.net/maria/+bug/619731/+attachment/1617009/+files/var-bug619731-2.zip]]>      </newvalue>
      <whatchanged>attachment added</whatchanged>
      <person>Philip Stoev</person>
      <message></message>
    </activity>
    <activity datechanged="2010-09-21T07:46:05.936852+00:00">
      <oldvalue>
<![CDATA[Fix Released]]>      </oldvalue>
      <newvalue>
<![CDATA[Confirmed]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Philip Stoev</person>
      <message></message>
    </activity>
    <activity datechanged="2010-12-18T09:32:25.878591+00:00">
      <oldvalue>
<![CDATA[Confirmed]]>      </oldvalue>
      <newvalue>
<![CDATA[In Progress]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Michael Widenius</person>
      <message></message>
    </activity>
    <activity datechanged="2011-01-05T13:43:47.066519+00:00">
      <oldvalue>
<![CDATA[In Progress]]>      </oldvalue>
      <newvalue>
<![CDATA[Fix Committed]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Michael Widenius</person>
      <message></message>
    </activity>
    <activity datechanged="2011-03-01T15:54:40.475674+00:00">
      <oldvalue>
<![CDATA[Fix Committed]]>      </oldvalue>
      <newvalue>
<![CDATA[Fix Released]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Michael Widenius</person>
      <message></message>
    </activity>
  </activities>
  <comments>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/619731/comments/0" datecreated="2010-08-18T09:41:52.267136+00:00">
      <person>Philip Stoev</person>
      <subject>
<![CDATA[Aria recovery corruption "Page 1:  Row:   1 has an extent with wrong information in bitmap"]]>      </subject>
      <content>
<![CDATA[The following RQG command line:

perl runall.pl \
 --queries=1M \
 --engine=Maria \
 --mysqld=--log-output=file \
 --reporters=ErrorLog,Backtrace,Recovery,Shutdown \
 --duration=120 \
 --threads=20 \
 --rows=1000 \
 --mask-level=1 \
 --mysqld=--maria-repair-threads=2 \
 --mysqld=--loose-maria-group-commit=hard \
 --mysqld=--loose-maria_group_commit_interval=1 \
 --mysqld=--maria-checkpoint-interval=1 \
 --mysqld=--maria-block-size=4K \
 --grammar=conf/engines/many_indexes.yy \
 --gendata=conf/engines/many_indexes.zz \
 --mask=18168 \
 --queries=100000000 \
 --basedir=/home/philips/bzr/maria-5.1/ 

reported the following corruption on CHECK TABLE EXTENDED

'Page 1:  Row:   1 has an extent with wrong information in bitmap:  Page 192  Page_type: 2  Bitmap: 0']]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/619731/comments/1" datecreated="2010-08-18T09:50:40.445559+00:00">
      <person>Philip Stoev</person>
      <subject>
<![CDATA[Re: Aria recovery corruption "Page 1:  Row:   1 has an extent with wrong information in bitmap"]]>      </subject>
      <content>
<![CDATA[]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/619731/comments/2" datecreated="2010-09-09T23:50:16.168309+00:00">
      <person>Michael Widenius</person>
      <subject>
<![CDATA[Re: Aria recovery corruption "Page 1:  Row:   1 has an extent with wrong information in bitmap"]]>      </subject>
      <content>
<![CDATA[This is probably fixed by my last pushed fix for bitmap pages. I will run the test case 5 times to try to ensure this case is also fixed.
]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/619731/comments/3" datecreated="2010-09-21T07:34:31.245154+00:00">
      <person>Philip Stoev</person>
      <subject>
<![CDATA[Re: Aria recovery corruption "Page 1:  Row:   1 has an extent with wrong information in bitmap"]]>      </subject>
      <content>
<![CDATA[I am afraid this corruption still happened with the following revision:

revision-id: monty@askmonty.org-20100915130103-x6i3x2mjc5gxsu77
date: 2010-09-15 16:01:03 +0300
build-date: 2010-09-20 12:05:51 +0300
revno: 2938
branch-nick: 5.1

I will upload the datadir shortly.]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/619731/comments/4" datecreated="2010-09-21T07:41:12.382500+00:00">
      <person>Philip Stoev</person>
      <subject>
<![CDATA[Re: Aria recovery corruption "Page 1:  Row:   1 has an extent with wrong information in bitmap"]]>      </subject>
      <content>
<![CDATA[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=30 \ 
--threads=1 \ 
--rows=1000 \ 
--mask-level=1 \ 
--mysqld=--maria-repair-threads=2 \ 
--mysqld=--loose-maria-group-commit=soft \ 
--mysqld=--loose-maria_group_commit_interval=100 \ 
--mysqld=--maria-checkpoint-interval=1 \ 
--mysqld=--maria-block-size=4K \ 
--mask=41440 \ 
--queries=100000000 \ 
--mask=41440 \ 
--seed=time \
--basedir=. \ 
--mysqld=--init-file=/home/buildbot/randgen/conf/smf/smf2.sql \ 
--grammar=conf/smf/smf2.yy
]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/619731/comments/5" datecreated="2010-10-14T05:47:03.863987+00:00">
      <person>Philip Stoev</person>
      <subject>
<![CDATA[Re: Aria recovery corruption "Page 1:  Row:   1 has an extent with wrong information in bitmap"]]>      </subject>
      <content>
<![CDATA[Still present with the following revision:


revno: 2951
committer: Michael Widenius <monty@askmonty.org>
branch nick: maria-5.1
timestamp: Wed 2010-10-13 18:15:43 +0300
message:
  Fixes for bugs found by running test case for LP#608369 "Page: 1 Found wrong page type 0' on CHECK TABLE EXTENDED"
  Fixed overflow when using long --debug=xxxxxx line.
  Fixed that "mysqld --disable-debug --debug" works.
  Ensure that MariaDB doesn't start if the Aria engine didn't start and we are using Aria for temporary tables.
  More DBUG_ASSERT() and more info in debug log.
]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/619731/comments/6" datecreated="2011-01-04T22:10:06.595130+00:00">
      <person>Michael Widenius</person>
      <subject>
<![CDATA[Re: Aria recovery corruption "Page 1:  Row:   1 has an extent with wrong information in bitmap"]]>      </subject>
      <content>
<![CDATA[After a LOT of work and thinking, I finally nailed down a corruption in the bitmaps.
The bug happens when deleting a row spanning many pages and there is new data inserted on the same page during one checkpoint and the new data pages are flushed out.
I will push a fix for this in 5.1 tomorrow morning (after I have run testing on the patch the whole night).]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/619731/comments/7" datecreated="2011-01-07T13:58:17.658621+00:00">
      <person>Michael Widenius</person>
      <subject>
<![CDATA[Re: Aria recovery corruption "Page 1:  Row:   1 has an extent with wrong information in bitmap"]]>      </subject>
      <content>
<![CDATA[Fixed and committed yesterday a related bug. Now I can't repeat any problems anymore with the given test cases.
Fix is also pushed to 5.2 tree.]]>      </content>
    </comment>
  </comments>
  <messages>
    <message created="2010-08-18 09:50:40.445559+00:00" owner="Philip Stoev">
<![CDATA[]]>      <attachment link="https://bugs.launchpad.net/bugs/619731/+attachment/1497536" type="Unspecified">
        <title>core binary datadir</title>
        <file>LPexportBug619731_var-bug619731.zip</file>
      </attachment>
    </message>
    <message created="2010-09-21 07:41:12.382500+00:00" owner="Philip Stoev">
<![CDATA[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=30 \ 
--threads=1 \ 
--rows=1000 \ 
--mask-level=1 \ 
--mysqld=--maria-repair-threads=2 \ 
--mysqld=--loose-maria-group-commit=soft \ 
--mysqld=--loose-maria_group_commit_interval=100 \ 
--mysqld=--maria-checkpoint-interval=1 \ 
--mysqld=--maria-block-size=4K \ 
--mask=41440 \ 
--queries=100000000 \ 
--mask=41440 \ 
--seed=time \
--basedir=. \ 
--mysqld=--init-file=/home/buildbot/randgen/conf/smf/smf2.sql \ 
--grammar=conf/smf/smf2.yy
]]>      <attachment link="https://bugs.launchpad.net/bugs/619731/+attachment/1617009" type="Unspecified">
        <title>datadir, logs, etc.</title>
        <file>LPexportBug619731_var-bug619731-2.zip</file>
      </attachment>
    </message>
  </messages>
</launchpad-bug>
