Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.3.18
-
None
-
Windows server 2012
Description
Customer reported the following error when running alter table <x> add index.
[10.3.18] |
2020-03-15 1:00:03 1573540 [ERROR] InnoDB: Table status/currenteustatus20200315 contains 5 indexes inside InnoDB, which is different from the number of indexes 4 defined in the MariaDB Have you mixed up .frm files from different installations? See https://mariadb.com/kb/en/innodb-troubleshooting/ |
this is exactly like MDEV-21669, but it wasn't fixed in 10.3.18. When I ran repro with 10.4.12, it returned the warning instead of error. In order to reproduce this, I've set data directory to read-only mode in windows and then it returned the following warning.
[10.4.12] |
INNODB: TABLE test/currenteustatus20200315 CONTAINS 7 INDEXES inside INNODB, which IS different FROM the NUMBER OF INDEXES 6 defined IN the MariaDB |
Attachments
Issue Links
- relates to
-
MDEV-17567 Atomic DDL
-
- Closed
-
- links to
allen.lee@mariadb.com, I tried but failed to repeat this on GNU/Linux with the following test case:
--source include/have_innodb.inc
On Windows, the chmod may have to be replaced with something compatible. For me, it fails as follows:
10.3 7e07e38cf687ccd7fa3bd3a35c1eb7e4b307ca5f
mysqltest: At line 6: query 'ALTER TABLE t1 ADD INDEX i_lastmodified2 (lastmodified)' failed: 1005: Can't create table `test`.`#sql-f6c0_9` (errno: 13 "Permission denied")
I also tried with the described version:
mariadb-10.3.18
mysqltest: At line 6: query 'ALTER TABLE t1 ADD INDEX i_lastmodified2 (lastmodified)' failed: 1005: Can't create table `test`.`#sql-11247_9` (errno: 13 "Permission denied")
It could be that this bug only affects the Windows platform, which I did not use.
I suspect that what happens is the following: