InnoDB: Failing assertion: table->data_dir_path while dropping table after recovery
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB | Status tracked in 2.4 | |||||
2.3 |
Triaged
|
High
|
Unassigned | |||
2.4 |
Triaged
|
High
|
Unassigned |
Bug Description
Here is a description:
mysql> use test;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> CREATE TABLE `t2` ( `c1` int(11) NOT NULL, PRIMARY KEY (`c1`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 data directory=
Query OK, 0 rows affected (0,33 sec)
mysql> insert into t2 values(1);
Query OK, 1 row affected (0,06 sec)
mysql> insert into t2 values(2);
Query OK, 1 row affected (0,06 sec)
Take full backup + prepare backup + copy back to /var/lib/mysql
Then remove original path of table:
root@shrzayev:/tmp# rm -rf foo/
Start MySQL server :
2016-03-06 13:14:26 8751 [ERROR] InnoDB: A link file was found named './test/t2.isl' but the linked tablespace '/tmp/foo/
2016-03-06 13:14:26 8751 [Note] InnoDB: The InnoDB data dictionary table SYS_DATAFILES for tablespace ID 15 was updated to use file ./test/t2.ibd.
and try to drop table:
mysql> drop table t2;
ERROR 2013 (HY000): Lost connection to MySQL server during query
From error log:
2016-03-06 13:17:22 7f02307d3700 InnoDB: Assertion failure in thread 139647380174592 in file row0mysql.cc line 4202
InnoDB: Failing assertion: table->
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/lib/x86_
/lib/x86_
From core dump:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
Core was generated by `/usr/sbin/mysqld --basedir=/usr --datadir=
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f0697caf621 in __pthread_kill (threadid=
61 ../nptl/
Traceback (most recent call last):
File "/usr/share/
from libstdcxx.
ImportError: No module named 'libstdcxx'
(gdb) bt
#0 0x00007f0697caf621 in __pthread_kill (threadid=
#1 0x000000000067062d in handle_fatal_signal ()
#2 <signal handler called>
#3 0x00007f06970f3cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/
#4 0x00007f06970f70d8 in __GI_abort () at abort.c:89
#5 0x00000000009cdebe in ?? ()
#6 0x0000000000936b83 in ?? ()
#7 0x00000000005b9194 in ha_delete_
#8 0x000000000073df0d in mysql_rm_
#9 0x000000000073f0df in mysql_rm_
#10 0x00000000006ed559 in mysql_execute_
#11 0x00000000006f0c08 in mysql_parse(THD*, char*, unsigned int, Parser_state*) ()
#12 0x00000000006f23af in dispatch_
#13 0x00000000006bfba2 in do_handle_
#14 0x00000000006bfc50 in handle_
#15 0x0000000000915273 in pfs_spawn_thread ()
#16 0x00007f0697caa182 in start_thread (arg=0x7f0683a3
#17 0x00007f06971b747d in clone () at ../sysdeps/
Seems to be related to Upstream:
http:// bugs.mysql. com/bug. php?id= 80625