Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.4(EOL)
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
- blocks
-
MDEV-18762 Support easy restore of partial backup
- Closed
-
MDEV-23874 Crash in ALTER TABLE ... IMPORT TABLESPACE for the table after instant ALTER was used on it
- Closed
-
MDEV-24352 General error: 1808 Schema mismatch (Index field count XX doesn't match tablespace metadata file value YY)
- Closed
-
MDEV-26847 improve encryption/compression check in ALTER TABLE IMPORT
- Open
- includes
-
MDEV-26621 assertion failue "index->table->persistent_autoinc" in /storage/innobase/btr/btr0btr.cc during IMPORT
- Closed
- is caused by
-
MDEV-15562 Instant DROP COLUMN or changing the order of columns
- Closed
- is duplicated by
-
MDEV-25066 IMPORT TABLESPACE not possible if source table had column moved in INSTANT mode
- Closed
- relates to
-
MDEV-20590 Introduce a file format constraint to ALTER TABLE
- Closed
-
MDEV-21549 IMPORT TABLESPACE fails to adjust all tablespace ID in root pages
- Closed
-
MDEV-27272 Crash on EXPORT/IMPORT tablespace with column added in the middle
- Closed
-
MDEV-33512 Discard/Import Tablespace, Restart, Index Corruption
- Closed
-
MDEV-11658 Simpler, faster IMPORT of InnoDB tables
- Open
-
MDEV-18295 IMPORT TABLESPACE fails with instant-altered tables
- Closed