Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Critical
-
Resolution: Unresolved
-
10.5, 10.6, 10.11, 11.2(EOL), 11.4, 11.6(EOL), 11.7(EOL), 11.8, 12.0
Description
test case
--source include/have_innodb.inc
|
|
CREATE TABLE t1 (a INT,b INT,KEY(a),KEY(b)) ENGINE=INNODB; |
ALTER TABLE t1 RENAME KEY b TO B; |
DELETE FROM t1; |
Leads to
CREATE TABLE t1 (a INT,b INT,KEY(a),KEY(b)) ENGINE=INNODB;
|
ALTER TABLE t1 RENAME KEY b TO B;
|
DELETE FROM t1;
|
Warnings:
|
Warning 1082 InnoDB: Table test/t1 contains 2 indexes inside InnoDB, which is different from the number of indexes 2 defined in the MariaDB
|
main.mytest [ fail ] Found warnings/errors in server log file!
|
Test ended at 2024-09-18 07:30:39
|
line
|
2024-09-18 7:30:39 4 [ERROR] Cannot find index B in InnoDB index dictionary.
|
2024-09-18 7:30:39 4 [ERROR] InnoDB indexes are inconsistent with what defined in .frm for table ./test/t1
|
2024-09-18 7:30:39 4 [ERROR] InnoDB could not find key no 1 with name B from dict cache for table test/t1
|
2024-09-18 7:30:39 4 [ERROR] InnoDB: Table test/t1 contains 2 indexes inside InnoDB, which is different from the number of indexes 2 defined in the MariaDB Have you mixed up .frm files from different installations? See https://mariadb.com/kb/en/innodb-troubleshooting/
|
Ran into the same. This looks quite serious?
--source include/have_innodb.inc
SHOW WARNINGS;
CS 11.4.5 6be42c7276cb342df81e18aa53868623a89abeec (Debug)
11.4.5-dbg>SHOW WARNINGS;
+---------+------+--------------------------------------------------------------------------------------------------------------------------------+
| Level | Code | Message |
+---------+------+--------------------------------------------------------------------------------------------------------------------------------+
| Warning | 1082 | InnoDB: Table test/t contains 1 indexes inside InnoDB, which is different from the number of indexes 1 defined in the MariaDB |
| Warning | 1082 | InnoDB: Table test/t contains 2 indexes inside InnoDB, which is different from the number of indexes 1 defined in the MariaDB |
+---------+------+--------------------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.000 sec)
CS 11.4.5 6be42c7276cb342df81e18aa53868623a89abeec (Debug)
2025-01-25 15:05:16 4 [ERROR] Cannot find index C in InnoDB index dictionary.
2025-01-25 15:05:16 4 [ERROR] InnoDB indexes are inconsistent with what defined in .frm for table ./test/t
2025-01-25 15:05:16 4 [ERROR] InnoDB could not find key no 0 with name C from dict cache for table test/t
2025-01-25 15:05:16 4 [ERROR] InnoDB: Table test/t contains 1 indexes inside InnoDB, which is different from the number of indexes 1 defined in the .frm file. See https://mariadb.com/kb/en/innodb-troubleshooting/
2025-01-25 15:05:16 4 [ERROR] InnoDB: Table test/t contains 2 indexes inside InnoDB, which is different from the number of indexes 1 defined in the .frm file. See https://mariadb.com/kb/en/innodb-troubleshooting/