InnoDB: Failing assertion: 0 in file handler0alter.cc line 5694 | tablespace issues | abort (sig=6) in ha_innobase::commit_inplace_alter_table
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
||||
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.1 |
Won't Fix
|
Undecided
|
Unassigned | |||
5.5 |
New
|
Undecided
|
Unassigned | |||
5.6 |
Triaged
|
Medium
|
Unassigned | |||
5.7 |
New
|
Medium
|
Unassigned |
Bug Description
2014-10-20 21:33:58 6384 [ERROR] /sda/Percona-
2014-10-20 21:33:58 6384 [ERROR] InnoDB: The table test/t2 doesn't have a corresponding tablespace, it was discarded.
2014-10-20 21:33:58 6384 [Note] InnoDB: Saving InnoDB page number: 1
2014-10-20 21:33:58 6384 [ERROR] InnoDB: Cannot delete tablespace 77 because it is not found in the tablespace memory cache.
2014-10-20 21:33:58 7fc2b0488700 InnoDB: cannot calculate statistics for table "test"."t2" because the .ibd file is missing. For help, please refer to http://
2014-10-20 21:34:08 6384 [ERROR] InnoDB: The table test/t2 doesn't have a corresponding tablespace, it was discarded.
2014-10-20 21:34:08 7fc2b0488700 InnoDB: cannot calculate statistics for table "test"."t2" because the .ibd file is missing. For help, please refer to http://
2014-10-20 21:34:08 6384 [ERROR] /sda/Percona-
2014-10-20 21:34:08 7fc2b0488700 InnoDB: cannot calculate statistics for table "test"."t2" because the .ibd file is missing. For help, please refer to http://
2014-10-20 21:34:08 6384 [ERROR] InnoDB: Cannot delete tablespace 87 because it is not found in the tablespace memory cache.
2014-10-20 21:34:08 6384 [ERROR] InnoDB: dict_load_
2014-10-20 21:34:08 7fc2b0447700 InnoDB: Assertion failure in thread 140474157659904 in file handler0alter.cc line 5694
InnoDB: Failing assertion: 0
[...]
10:34:08 UTC - mysqld got signal 6 ;
[...]
Query (7fc24c004e90): alter table t2 row_format = dynamic
Connection ID (thread ID): 4
Single threaded run, single mysqld involved
Thread 1 (Thread 0x7fc2b0447700 (LWP 6970)):
+bt
#0 0x00007fc2b9289771 in pthread_kill () from /lib64/
#1 0x0000000000ab7586 in my_write_core (sig=6) at /mnt/workspace/
#2 0x000000000072f9ff in handle_fatal_signal (sig=6) at /mnt/workspace/
#3 <signal handler called>
#4 0x00007fc2b7e8d5c9 in raise () from /lib64/libc.so.6
#5 0x00007fc2b7e8ecd8 in abort () from /lib64/libc.so.6
#6 0x0000000000afa1bc in ha_innobase:
#7 0x00000000006463c6 in handler:
#8 0x00000000008573aa in mysql_inplace_
#9 0x000000000085c080 in mysql_alter_table (thd=0x321f460, new_db=
#10 0x00000000009a3d65 in Sql_cmd_
#11 0x00000000007e9da3 in mysql_execute_
#12 0x00000000007ed193 in mysql_parse (thd=0x321f460, rawbuf=
#13 0x00000000007df5fc in dispatch_command (command=COM_QUERY, thd=0x321f460, packet=0x3a0f041 "alter table t2 row_format = dynamic;", packet_length=36) at /mnt/workspace/
#14 0x00000000007de528 in do_command (thd=0x321f460) at /mnt/workspace/
#15 0x00000000008c2c30 in threadpool_
#16 0x00000000008c5572 in handle_event (connection=
#17 0x00000000008c57a2 in worker_main (param=0x1898400 <all_groups+2048>) at /mnt/workspace/
#18 0x0000000000dc5bac in pfs_spawn_thread (arg=0x7fc24c00
#19 0x00007fc2b9284df3 in start_thread () from /lib64/
#20 0x00007fc2b7f4e01d in clone () from /lib64/libc.so.6
This is an upstream bug : http:// bugs.mysql. com/bug. php?id= 74363
**** testcase
DROP DATABASE test;CREATE DATABASE test;USE test;
create table t1(a int not null,b int not null,index idx(a));
CREATE TABLE t2(a INT KEY,b INT,INDEX ind (b),FOREIGN KEY (b) REFERENCES t1(a) ON DELETE CASCADE ON UPDATE CASCADE) ENGINE=InnoDB;
ALTER TABLE t1 CHANGE a id INT;