[MDEV-30288] Number of indexes in OQGraph backing table differs in InnoDB and .frm Created: 2022-12-21  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - OQGRAPH
Affects Version/s: 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11
Fix Version/s: 10.4, 10.5, 10.6

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

--source include/have_innodb.inc
 
INSTALL SONAME 'ha_oqgraph';
 
CREATE TABLE oq_backing (origid INT UNSIGNED NOT NULL, destid INT UNSIGNED NOT NULL, PRIMARY KEY (origid, destid), KEY (destid)) ENGINE=InnoDB;
CREATE TABLE oq (latch VARCHAR(32) NULL, origid BIGINT UNSIGNED NULL, destid BIGINT UNSIGNED NULL, weight DOUBLE NULL, seq BIGINT UNSIGNED NULL, linkid BIGINT UNSIGNED NULL, KEY (latch, origid, destid) USING HASH, KEY (latch, destid, origid) USING HASH) ENGINE=OQGRAPH data_table='oq_backing' origid='origid' destid='destid';
SELECT * FROM oq WHERE latch = 1 AND destid = 35976;
ALTER TABLE oq_backing ADD KEY ind1 (origid, destid);
SELECT * FROM oq WHERE latch = 0;

10.3 0ca3aaa7

SELECT * FROM oq WHERE latch = 0;
latch	origid	destid	weight	seq	linkid
Warnings:
Warning	1082	InnoDB: Table test/oq_backing contains 3 indexes inside InnoDB, which is different from the number of indexes 2 defined in the MariaDB 
bug.ref2 'innodb'                        [ fail ]  Found warnings/errors in server log file!
        Test ended at 2022-12-21 15:20:57
line
2022-12-21 15:20:56 9 [ERROR] InnoDB: Table test/oq_backing contains 3 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/


Generated at Thu Feb 08 10:15:07 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.