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

FRM file corruption caused by killed ALTER TABLE

    XMLWordPrintable

Details

    Description

      Scenario:
      1. Start the server and create some table.
      2. One session runs a loop consisting of
      ALTER TABLE ... ADD COLUMN ... ;
      ALTER TABLE ... DROP COLUMN ...;
      The other session runs a loop consisting of
      KILL SOFT QUERY <first session>
      After some short time the server error log starts to fill up with entries like
      2025-11-12 10:34:17 16 [ERROR] mariadbd: Incorrect information in file: './test/#sql-alter-376c5c-10.frm'
      2025-11-12 10:34:17 16 [ERROR] mariadbd: Incorrect information in file: './test/t5.frm'
      It does not matter if the tables uses the storage engine InnoDB, Aria or MyISAM.

      Attachments

        1. Frm-corruption.yy
          0.5 kB
          Matthias Leich
        2. Frm-corruption.cfg
          46 kB
          Matthias Leich
        3. mysqltest_background.sh
          3 kB
          Matthias Leich
        4. MDEV-38074.test
          3 kB
          Matthias Leich

        Activity

          People

            sanja Oleksandr Byelkin
            mleich Matthias Leich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.