[MDEV-30655] IMPORT TABLESPACE fails with column count or index count mismatch Created: 2023-02-15 Updated: 2024-02-06 |
|
| Status: | In Review |
| Project: | MariaDB Server |
| Component/s: | Documentation, Storage Engine - InnoDB |
| Affects Version/s: | 10.4.18, 10.11.1, 10.4.28, 10.5.19, 10.6.12, 10.7.8, 10.8.7, 10.9.5, 10.10.3 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Hartmut Holzgraefe | Assignee: | Marko Mäkelä |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Description |
|
When trying to import a table from a mariabackup taken from a 10.4.18 instance using mariabackup --prepare --export and ALTER TABLE ... IMPORT TABLESPACE I'm getting
when importing into 10.4.18 to 10.4.22; and for later versions, all the way up to 10.11
|
| Comments |
| Comment by Thirunarayanan Balathandayuthapani [ 2023-02-15 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Following test case in 10.4.18 throws the error:
Test case:
If we run the above test case in 10.4.22 :
But in latest 10.4:
If we use the old .cfg file in latest 10.4 and 10.5 version then we get the same error:
InnoDB can import the tablespace without .cfg file if the table doesn't have any secondary
Workaround can be like | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2023-02-16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
When importing the table which dealt with FTS index before, InnoDB can throw the To workaround this scenario, user should follow the steps It would be great to document this behavior | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anne Strasser (Inactive) [ 2023-04-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I've created and linked a docscollab ticket and assigned a writer to this https://mariadbcorp.atlassian.net/browse/DOCSCOLLAB-851 On Mon, Mar 27, 2023 at 5:39 AM Julien Fritsch (Jira) <jira@mariadb.org> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2023-12-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Side note: While thiru, I think that we can improve on this: If the .cfg file says that there is an ‘extra’ FTS_DOC_ID column and possible hidden FTS_DOC_ID_INDEX, we could actually add them to the InnoDB dict_table_t (and SYS_COLUMNS, SYS_INDEXES, SYS_FIELDS) when importing. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2024-01-30 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2024-01-31 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This is a step to the right direction, but I think that this needs a bit more work, especially to improve the test coverage of the changes to the data dictionary tables and the dictionary cache. |