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

LP:657295 - MariaDB loop with MyISAM tables marked as crashed

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      On several servers (3) MariaDB 5.1 crashed after an upgrade from from MySQL 5.0.
      Log shows:
      ===
      Version: '5.1.50-MariaDB-mariadb84-log' socket: '/var/run/mysqld/mysqld.sock'
      port: 3306 (MariaDB - http://mariadb.com/)
      101008 14:35:17 [ERROR] mysqld: Table './database123/table123' is marked as
      crashed and should be repaired
      101008 14:35:17 [Warning] Checking table: './database123/table123'
      101008 14:35:17 mysqld_safe Number of processes running now: 0
      101008 14:35:17 mysqld_safe mysqld restarted
      ===

      This is looping, so things only get worse every time with more crashed tables.
      Using myisamchk to repair all MYI tables actually "fixes" the issue, but I guess
      it can come back after an unclean shutdown. This appears to be a major bug. I have
      a copy of such corrupt database available on request. (see WL#155)

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            dreasvandonselaar Dreas van Donselaar added a comment -

            Re: MariaDB loop with MyISAM tables marked as crashed
            Monty found that this occurred because thread_stack was set to 128K instead of 256K which is required for MariaDB 5.1. Still seems that should be fixed though (or at least MariaDB should refuse to start with a clear error message).

            Show
            dreasvandonselaar Dreas van Donselaar added a comment - Re: MariaDB loop with MyISAM tables marked as crashed Monty found that this occurred because thread_stack was set to 128K instead of 256K which is required for MariaDB 5.1. Still seems that should be fixed though (or at least MariaDB should refuse to start with a clear error message).
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 657295

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 657295
            Hide
            elenst Elena Stepanova added a comment -

            Could not reproduce the problem by upgrading from 5.0.96 to 5.1.50, and there is no problematic datadir to experiment with. Also, the comment about thread_stack is not quite clear since MariaDB 5.1.50 (where the problem is reported) automatically adjusts thread_stack=128K to 245760.
            Closing as incomplete. Anyway, probably nowadays not so many people will upgrade from MySQL 5.0 to MariaDB 5.1.

            Show
            elenst Elena Stepanova added a comment - Could not reproduce the problem by upgrading from 5.0.96 to 5.1.50, and there is no problematic datadir to experiment with. Also, the comment about thread_stack is not quite clear since MariaDB 5.1.50 (where the problem is reported) automatically adjusts thread_stack=128K to 245760. Closing as incomplete. Anyway, probably nowadays not so many people will upgrade from MySQL 5.0 to MariaDB 5.1.
            Hide
            elenst Elena Stepanova added a comment -

            Reopening to remove 'fix version's

            Show
            elenst Elena Stepanova added a comment - Reopening to remove 'fix version's

              People

              • Assignee:
                Unassigned
                Reporter:
                serg Sergei Golubchik
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: