Broken FK constraints crashing cluster nodes - assertion in file dict0dict.cc line 564
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.6 |
Fix Released
|
High
|
Unassigned |
Bug Description
When doing an UPDATE to a table having many FK constraints, from which some of them are broken - like reference to non existing table, it crashes PXC node (also when cluster has only 1 node active). I cannot reproduce the same on normal Percona Server nor MySQL versions.
[7cf5e9886947] {root} (open) > select @@version,
*******
@@version: 5.6.29-76.2-56-log
@@version_comment: Percona XtraDB Cluster (GPL), Release rel76.2, Revision b60e98d, WSREP version 25.15, wsrep_25.15
1 row in set (0.00 sec)
[7cf5e9886947] {root} (open) > UPDATE lms_activities SET activity_
ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails (`okn_lil_
[7cf5e9886947] {root} (open) > UPDATE lms_activities SET activity_
ERROR 2013 (HY000): Lost connection to MySQL server during query
2016-05-31 13:29:57 7f5390b0a700 InnoDB: Assertion failure in thread 139996886509312 in file dict0dict.cc line 564
InnoDB: Failing assertion: table->n_ref_count > 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.
13:29:57 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 XtraDB Cluster better by reporting any
bugs at https:/
key_buffer_
read_buffer_
max_used_
max_threads=202
thread_count=6
connection_count=1
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: 0x2254610
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 = 7f5390b09d68 thread_stack 0x40000
/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/
/lib64/
/lib64/
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f536c004b90): is an invalid pointer
Connection ID (thread ID): 6
Status: NOT_KILLED
Reproducible always after second try of the statement. Schema and data for test case confidential.
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PXC-1028