Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3559

LP:633866 - ma_key_recover.c:982: _ma_apply_redo_index: Assertion `page_offset - length <= page_length' failed on maria_read_log aria recovery

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Recovery with maria_read_log from the RQG varchar scenario failed as follows:

      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%maria_read_log: ma_key_recover.c:982: _ma_apply_redo_index: Assertion `page_offset - length <= page_length' failed.

      RQG command line:

      1. 2010-09-09T04:30:05 # /home/buildbot/randgen/runall.pl \
      2. 2010-09-09T04:30:05 # --queries=1M \
      3. 2010-09-09T04:30:05 # --engine=Maria \
      4. 2010-09-09T04:30:05 # -mysqld=-log-output=file \
      5. 2010-09-09T04:30:05 # -mysqld=-maria_log_purge_type=at_flush \
      6. 2010-09-09T04:30:05 # --reporters=ErrorLog,Backtrace,Recovery,Shutdown \
      7. 2010-09-09T04:30:05 # --duration=240 \
      8. 2010-09-09T04:30:05 # --threads=10 \
      9. 2010-09-09T04:30:05 # --rows=10 \
      10. 2010-09-09T04:30:05 # --mask-level=0 \
      11. 2010-09-09T04:30:05 # -mysqld=-loose-maria-group-commit=hard \
      12. 2010-09-09T04:30:05 # -mysqld=-loose-maria_group_commit_interval=100 \
      13. 2010-09-09T04:30:05 # -mysqld=-maria-checkpoint-interval=0 \
      14. 2010-09-09T04:30:05 # -mysqld=-maria-block-size=16K \
      15. 2010-09-09T04:30:05 # --grammar=conf/engines/varchar.yy \
      16. 2010-09-09T04:30:05 # --gendata=conf/engines/varchar.zz \
      17. 2010-09-09T04:30:05 # --mask=2697 \
      18. 2010-09-09T04:30:05 # --queries=100000000 \
      19. 2010-09-09T04:30:05 # --mask=2697 \
      20. 2010-09-09T04:30:05 # --basedir=. \
      21. 2010-09-09T04:30:05 # --seed=time \
      22. 2010-09-09T04:30:05 # --vardir=/home/buildbot/rqg-buildbot-slave/rqg-weekend/vardir-maria_recovery_weekend/current

      bzr version-info:

      revision-id: <email address hidden>
      date: 2010-09-07 19:58:39 +0300
      build-date: 2010-09-09 10:35:46 +0300
      revno: 2924
      branch-nick: 5.1

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            philipstoev Philip Stoev added a comment -

            datadir, logs, etc.
            LPexportBug633866_var-bug633866.zip

            Show
            philipstoev Philip Stoev added a comment - datadir, logs, etc. LPexportBug633866_var-bug633866.zip
            Hide
            philipstoev Philip Stoev added a comment -

            Re: ma_key_recover.c:982: _ma_apply_redo_index: Assertion `page_offset - length <= page_length' failed on maria_read_log aria recovery

            Show
            philipstoev Philip Stoev added a comment - Re: ma_key_recover.c:982: _ma_apply_redo_index: Assertion `page_offset - length <= page_length' failed on maria_read_log aria recovery
            Hide
            monty Michael Widenius added a comment -

            Re: ma_key_recover.c:982: _ma_apply_redo_index: Assertion `page_offset - length <= page_length' failed on maria_read_log aria recovery
            Tested with the uploaded datadir and maria_read_log now works.
            Will run the test script as follows for some hours to ensure the bug is really fixed.

            while runall.pl -basedir=/my/maria-5.1 --vardir=/my/vardir --mysqld=sync-sys=0 --mysqld=safe-mode --mysqld=default-storage-engine=Maria --mysqld=loose-debug-assert-if-crashed-table --queries=1M --engine=Maria --mysqld=log-output=file --mysqld=maria_log_purge_type=at_flush --reporters=ErrorLog,Backtrace,Recovery,Shutdown --duration=240 --threads=10 --rows=10 --mask-level=0 --mysqld=loose-maria-group-commit=hard --mysqld=loose-maria_group_commit_interval=100 --mysqld=maria-checkpoint-interval=0 --mysqld=-maria-block-size=16K --grammar=conf/engines/varchar.yy --gendata=conf/engines/varchar.zz --mask=2697 --queries=100000000 --mask=2697 --basedir=. --seed=time ; do echo "retrying" ; done ;

            Show
            monty Michael Widenius added a comment - Re: ma_key_recover.c:982: _ma_apply_redo_index: Assertion `page_offset - length <= page_length' failed on maria_read_log aria recovery Tested with the uploaded datadir and maria_read_log now works. Will run the test script as follows for some hours to ensure the bug is really fixed. while runall.pl - basedir=/my/maria-5.1 --vardir=/my/vardir --mysqld= sync-sys=0 --mysqld= safe-mode --mysqld= default-storage-engine=Maria --mysqld= loose-debug-assert-if-crashed-table --queries=1M --engine=Maria --mysqld= log-output=file --mysqld= maria_log_purge_type=at_flush --reporters=ErrorLog,Backtrace,Recovery,Shutdown --duration=240 --threads=10 --rows=10 --mask-level=0 --mysqld= loose-maria-group-commit=hard --mysqld= loose-maria_group_commit_interval=100 --mysqld= maria-checkpoint-interval=0 --mysqld= -maria-block-size=16K --grammar=conf/engines/varchar.yy --gendata=conf/engines/varchar.zz --mask=2697 --queries=100000000 --mask=2697 --basedir=. --seed=time ; do echo "retrying" ; done ;
            Hide
            monty Michael Widenius added a comment -

            Re: ma_key_recover.c:982: _ma_apply_redo_index: Assertion `page_offset - length <= page_length' failed on maria_read_log aria recovery
            Have now run test for 6 hours and no problems, so I have to assume this bug is fixed too.

            Show
            monty Michael Widenius added a comment - Re: ma_key_recover.c:982: _ma_apply_redo_index: Assertion `page_offset - length <= page_length' failed on maria_read_log aria recovery Have now run test for 6 hours and no problems, so I have to assume this bug is fixed too.
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 633866

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 633866

              People

              • Assignee:
                monty Michael Widenius
                Reporter:
                philipstoev Philip Stoev
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: