Details

    Description

      Atomic drop table (MDEV-23844) does not recover the replaced table if CREATE OR REPLACE TABLE fails.

      This is because current, as before, CREATE OR REPLACE TABLE foo ... is implemented as:

      DROP TABLE IF EXISTS foo;
      CREATE TABLE foo ..

      Because of that failed CREATE OR REPLACE TABLE or a crash during the create will lead to lost table, if the original table existed.

      This task equips table drop with backing up the old table until the new table was successfully created.

      In other words, this task ensures that if one executes CREATE OR REPLACE TABLE foo on an existing table, the table foo will either be the new or old table after the statement has executed, including in the cases the CREATE fails or the server crashes.

      NOTE: this change was in a preview release for MariaDB Community Server 10.10.0, but could not be added to 10.10 RC

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Aleksey Midenkov made transition -
            Open In Progress
            1m 44s 1
            Aleksey Midenkov made transition -
            In Progress In Review
            253d 22h 55m 2
            Aleksey Midenkov made transition -
            In Review In Testing
            18d 4h 42m 2
            Aleksey Midenkov made transition -
            In Progress Closed
            28d 23h 11m 1
            Sergei Golubchik made transition -
            Closed Stalled
            62d 4h 12m 1
            Aleksey Midenkov made transition -
            Stalled In Testing
            66d 2h 51m 3
            Aleksey Midenkov made transition -
            In Testing Stalled
            141d 14h 27m 6
            Aleksey Midenkov made transition -
            Stalled In Review
            24s 2
            Julien Fritsch made transition -
            In Review Stalled
            442d 8h 30m 2
            Michael Widenius made transition -
            Stalled In Progress
            354d 9h 36m 4
            Michael Widenius made transition -
            In Progress In Testing
            60d 22h 3m 2

            People

              elenst Elena Stepanova
              midenok Aleksey Midenkov
              Votes:
              2 Vote for this issue
              Watchers:
              12 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.