Bug #70654 [ERROR] Table x contains y indexes inside InnoDB, which is different from MySQL
| Submitted: | 18 Oct 2013 10:11 | Modified: | 1 Dec 2013 18:00 |
|---|---|---|---|
| Reporter: | Roel Van de Paar | Email Updates: | |
| Status: | Duplicate | Impact on me: | |
| Category: | MySQL Server: InnoDB storage engine | Severity: | S1 (Critical) |
| Version: | 5.5.34 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[18 Oct 2013 10:11]
Roel Van de Paar
[18 Oct 2013 10:56]
Shane Bester
Known 5.5 bug, a simple concurrent DDL workload will cause it last time i checked it's fixed in 5.6/5.7. Bug 12890606 - INNODB COMPLAINS ABOUT NUMBER OF INDEXES DIFFERENT FROM WHAT IS DEFINED IN MYSQL
[18 Oct 2013 22:02]
Roel Van de Paar
Ok, see it is logged in another bug system already. Thanks
[29 Nov 2013 9:46]
Shane Bester
Sample testcase for 5.5
-----------
delimiter ;
drop table if exists t1;
create table t1(a int,b int,c int)engine=innodb;
drop procedure if exists p1;
delimiter $
create procedure p1()
begin
declare continue handler for sqlexception begin end;
repeat
if rand()>0.5 then alter ignore table t1 add unique key a(a); end if;
if rand()>0.5 then alter ignore table t1 add key b(b); end if;
if rand()>0.5 then alter ignore table t1 add unique key ba(b,a); end if;
if rand()>0.5 then alter ignore table t1 add key cba(c,b,a); end if;
if rand()>0.5 then alter ignore table t1 add key abc(a,b,c); end if;
if rand()>0.5 then alter ignore table t1 add key cb(c,b); end if;
if rand()>0.5 then alter ignore table t1 drop key a; end if;
if rand()>0.5 then alter ignore table t1 drop key b; end if;
if rand()>0.5 then alter ignore table t1 drop key ba; end if;
if rand()>0.5 then alter ignore table t1 drop key cba; end if;
if rand()>0.5 then alter ignore table t1 drop key abc; end if;
if rand()>0.5 then alter ignore table t1 drop key cb; end if;
if rand()>0.5 then show table status like 't1'; end if;
until 1=2 end repeat;
end $
delimiter ;
-----------
call p1(); #call in two connections
[1 Dec 2013 18:00]
Roel Van de Paar
Shane, nice. Thanks
[25 May 2016 13:38]
Alexander Rubin
It says that it is duplicate but it does not say duplicate of what bug. Will be nice to have a version it is fixed. Is it fixed in 5.5 as well?
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.042 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.