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

IMPORT TABLESPACE fails after instant DROP COLUMN

Details

    Description

      After the MDEV-18295 fix, IMPORT TABLESPACE will fail to import data files on which columns have been instantly reordered or dropped (MDEV-15562).

      The problem is demonstrated by this part of the test innodb.instant_alter_import:

      --echo # Import a data file that contains instant DROP COLUMN metadata
      alter table t2 drop x;
      alter table t1 drop x, force;
      alter table t1 discard tablespace;
       
      flush tables t2 for export;
      --move_file $MYSQLD_DATADIR/test/t2.cfg $MYSQLD_DATADIR/test/t1.cfg
      --copy_file $MYSQLD_DATADIR/test/t2.ibd $MYSQLD_DATADIR/test/t1.ibd
      unlock tables;
       
      --error ER_TABLE_SCHEMA_MISMATCH
      alter table t1 import tablespace;
      

      The IMPORT TABLESPACE code should read the metadata record and the metadata BLOB early, to augment the metadata. Because the pages have not been adjusted yet, the buffer pool will have to be bypassed while reading the pages.

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Marko Mäkelä made transition -
            Open Confirmed
            3m 54s 1
            Eugene Kosov (Inactive) made transition -
            Confirmed In Review
            954d 18h 27m 1
            Eugene Kosov (Inactive) made transition -
            Stalled In Review
            3d 18h 41m 1
            Marko Mäkelä made transition -
            In Review Stalled
            8d 6h 51m 2
            Eugene Kosov (Inactive) made transition -
            Stalled Closed
            21d 5h 4m 1

            People

              kevg Eugene Kosov (Inactive)
              marko Marko Mäkelä
              Votes:
              6 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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