Percona XtraDB Cluster 5.6 crash on ALTER TABLE / CREATE INDEX | InnoDB: Assertion failure in thread 140662130571008 in file lock0lock.cc line 6384 - Failing assertion: lock_table_has(trx, index->table, LOCK_IX) - UNIV_DEBUG | Failing assertion: table->n_rec_locks == 0 in Release Build
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MySQL patches by Codership |
New
|
Undecided
|
Unassigned | |||
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.5 |
Triaged
|
Undecided
|
Unassigned | |||
5.6 |
Fix Released
|
Critical
|
Raghavendra D Prabhu |
Bug Description
Debian 7.4
Server version: 5.6.15-63.0-log Percona XtraDB Cluster (GPL), Release 25.3, wsrep_25.3.r4034
Error stack:
2014-02-20 17:31:27 15237 [ERROR] Transaction not registered for MySQL 2PC, but transaction is active
2014-02-20 17:31:30 7fbbf6982700 InnoDB: Assertion failure in thread 140445272778496 in file row0mysql.cc line 3949
InnoDB: Failing assertion: table->n_rec_locks == 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.
17:31:30 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=102
thread_count=10
connection_count=10
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: 0x7fbbec7bd500
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 = 7fbbf6981e30 thread_stack 0x40000
/usr/sbin/
/usr/sbin/
/lib/x86_
/lib/x86_
/lib/x86_
/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/
/lib/x86_
/lib/x86_
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (1169d380): ALTER TABLE abstract_payment CHANGE type type VARCHAR(200) NULL
Connection ID (thread ID): 36369
Status: NOT_KILLED
Related branches
Changed in percona-xtradb-cluster: | |
status: | New → Incomplete |
Changed in percona-xtradb-cluster: | |
status: | Expired → New |
summary: |
- Percona XtraDB Cluster 5.6 crash on ALTER TABLE | InnoDB: Assertion - failure in thread 140662130571008 in file lock0lock.cc line 6384 - - Failing assertion: lock_table_has(trx, index->table, LOCK_IX) - - UNIV_DEBUG + Percona XtraDB Cluster 5.6 crash on ALTER TABLE / CREATE INDEX | + InnoDB: Assertion failure in thread 140662130571008 in file lock0lock.cc + line 6384 - Failing assertion: lock_table_has(trx, index->table, + LOCK_IX) - UNIV_DEBUG | Failing assertion: table->n_rec_locks == 0 in + Release Build |
tags: | added: i50153 |
@i.Tuzhilkin ,
You seem to be using 5.6.15-25.3, can you test with 5.6.15-25.4 which was released today? (which has "Server version: 5.6.15-63.0-log Percona XtraDB Cluster (GPL), Release 25.4, wsrep_25.4.r4043")
Also,
Please provide cnf as well as error log (and general log if any).
In addition:
a) Can you provide structure of the table before the crash?
b) Also, if you have test data that can be loaded, please provide that
I tested with sbtest and it didn't crash:
======= ======= ====== ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- + ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- + 100001 DEFAULT CHARSET=utf8 MAX_ROWS=1000000 | ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- +
MySQL [sbtest]> show create table sbtest1;
+------
| Table | Create Table |
+------
| sbtest1 | CREATE TABLE `sbtest1` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`k` int(10) unsigned NOT NULL DEFAULT '0',
`c` char(120) NOT NULL DEFAULT '',
`pad` char(60) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `k_1` (`k`)
) ENGINE=InnoDB AUTO_INCREMENT=
+------
1 row in set (0.00 sec)
MySQL [sbtest]> alter table sbtest1 change c c varchar(200) NULL;
Query OK, 100000 rows affected (2.79 sec)
Records: 100000 Duplicates: 0 Warnings: 0
MySQL [sbtest]> show create table sbtest1; ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---+ ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----.. .
+------
| Table | Create Table |
+------