Assertion failure on missing .ibd file
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
Incomplete
|
Undecided
|
Unassigned | |||
5.6 |
Incomplete
|
Undecided
|
Unassigned | |||
5.7 |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Server version: PS 5.5.31
A week ago, the customer tried to use ALTER TABLE temp.ledger_
150322 1:36:49 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
150322 1:36:49 InnoDB: Fatal error: cannot open ./temp/
.InnoDB: Have you deleted .ibd files under a running mysqld server?
150322 1:36:49 InnoDB: Assertion failure in thread 140387932489472 in file fil0fil.c line 721
InnoDB: Failing assertion: 0
For the completeness, I included error log data from a week ago when the initial complain on missing .ibd file was seen:
150314 20:48:15 [ERROR] MySQL is trying to open a table handle but the .ibd file for
table temp/ledger_
Have you deleted the .ibd file from the database directory under
the MySQL datadir, or have you used DISCARD TABLESPACE?
See http://
how you can resolve the problem.
150314 20:48:45 InnoDB: cannot calculate statistics for table temp/ledger_
InnoDB: because the .ibd file is missing. For help, please refer to
InnoDB: http://
InnoDB: Import: The extended import of temp/ledger_
InnoDB: Import: 3 indexes have been detected.
InnoDB: Progress in %: 1 2 3 4 5 6 7 8 9150314 20:57:18 InnoDB: cannot calculate statistics for table temp/ledger_
InnoDB: because the .ibd file is missing. For help, please refer to
InnoDB: http://
150314 20:57:18 [ERROR] MySQL is trying to open a table handle but the .ibd file for
table temp/ledger_
Have you deleted the .ibd file from the database directory under
the MySQL datadir, or have you used DISCARD TABLESPACE?
See http://
how you can resolve the problem.
....
55 56 57 58 59 60 61 62 63 64 65 66150314 22:05:25 InnoDB: cannot calculate statistics for table temp/ledger_
InnoDB: because the .ibd file is missing. For help, please refer to
InnoDB: http://
150314 22:05:25 [ERROR] MySQL is trying to open a table handle but the .ibd file for
table temp/ledger_
Have you deleted the .ibd file from the database directory under
the MySQL datadir, or have you used DISCARD TABLESPACE?
See http://
how you can resolve the problem.
93 94 95 96 97 98 99 100 done.
150322 1:36:49 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
150322 1:36:49 InnoDB: Fatal error: cannot open ./temp/
.InnoDB: Have you deleted .ibd files under a running mysqld server?
150322 1:36:49 InnoDB: Assertion failure in thread 140387932489472 in file fil0fil.c line 721
InnoDB: Failing assertion: 0
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://
InnoDB: about forcing recovery.
01:36:49 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
Please help us make Percona Server better by reporting any
bugs at http://
key_buffer_
read_buffer_
max_used_
max_threads=377
thread_count=291
connection_
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x111653250
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7fae9cd8be08 thread_stack 0x30000
/usr/sbin/
/usr/sbin/
/lib64/
/lib64/
/lib64/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/lib64/
/lib64/
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7fac98b22ff0): is an invalid pointer
Connection ID (thread ID): 1092584288
Status: NOT_KILLED
Here is the resolved stack trace:
stack_bottom = 7fae9cd8be08 thread_stack 0x30000 hash_nodes + 11185 hash_nodes + 11305 set_corrupt + 30548 innobase_ add_indexD0Ev + 583917 innobase_ add_indexD0Ev + 586800 innobase_ add_indexD0Ev + 528147 set_corrupt + 37414 set_corrupt + 47070 identifierP3THD P6StringPKcj + 8446 store_optionsP3 THDP10TABLE_ LISTP6String + 1101 all_tablesP3THD P10TABLE_ LISTP4Item + 1739 schema_ tables_ resultP4JOIN23e num_schema_ table_state + 606 selectP3THDPPP4 ItemP10TABLE_ LISTjR4ListIS1_ ES2_jP8st_ orderSB_ S2_SB_yP13selec t_resultP18st_ select_ lex_unitP13st_ select + 300 selectP3THDP3LE XP13select_ resultm + 461 routine_ accessP3THDmPcS 1_bb + 578 execute_ commandP3THD + 5459 parseP3THDPcjP1 2Parser_ state + 827 command19enum_ server_ commandP3THDPcj + 5693 handle_ one_connectionP 3THD + 319 one_connection + 81
0x7b4965 my_print_stacktrace + 53
0x68f704 handle_fatal_signal + 1204
0x7fd9809655b0 _end + 2140204464
0x7fd97f454f49 _end + 2118117193
0x7fd97f456348 _end + 2118122312
0x89cbc1 fil_system_
0x89cc39 fil_system_
0x8a8df4 fil_space_
0x879e7d _ZN21ha_
0x87a9c0 _ZN21ha_
0x86c4a3 _ZN21ha_
0x8aa8c6 fil_space_
0x8ace7e fil_space_
0x7e0c3f innobase_get_trx + 16319
0x5d4a4e _Z17append_
0x5d568d _Z18view_
0x5dff7b _Z14get_
0x5cff6e _Z24get_
0x5caa4d _ZN4JOIN4execEv + 1245
0x5cc95c _Z12mysql_
0x5cd40d _Z13handle_
0x5895d2 _Z20check_
0x58e2d3 _Z21mysql_
0x591adb _Z11mysql_
0x5931bd _Z16dispatch_
0x62e4cf _Z24do_
0x62e5b1 handle_
0x7cd609 pfs_spawn_thread + 89
0x7fd98095df18 _end + 2140174104
0x7fd97f503e9d _end + 2118833821