Percona XtraDB Cluster 5.7 single node crash with ALTER TABLE statement

Bug #1729648 reported by Mrten
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraDB Cluster moved to

Bug Description


An ALTER TABLE statement for resetting an AUTO_INCREMENT column for a table with a foreign key index results in a crash for 1 node in my 3 node percona-xtradb-cluster-server-5.7 (5.7.19-29.22-3.trusty) cluster. Attached you will find a minimal test case which consistently results in a single node crash in my 3 node cluster. The same test case does not crash any node on my 5.5 cluster.

Relevant log entries on the crashed node:

2017-11-02T16:01:15.616852Z 13 [ERROR] WSREP: Trx 299 tries to abort slave trx 300. This could be caused by:
        1) unsupported configuration options combination, please check documentation.
        2) a bug in the code.
        3) a database corruption.
 Node consistency compromized, need to abort. Restart the node to resync with cluster.
16:01:15 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.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.
Please help us make Percona XtraDB Cluster better by reporting any
bugs at

It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 919388 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7f8bb740e000
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 = 7f9730b02a40 thread_stack 0x40000

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f8bb74660e9): is an invalid pointer
Connection ID (thread ID): 13

You may download the Percona XtraDB Cluster operations manual by visiting You may find information
in the manual which will help you identify the cause of the crash.

Revision history for this message
Mrten (bugzilla-ii) wrote :
Revision history for this message
Krunal Bauskar (krunal-bauskar) wrote :

Please check the steps to reproduce.

1. Start 3 nodes cluster

2. Just run the said test-case against node-1

Expect a crash.

I tried to reproduce it as said above but couldn't reproduce.

a. Either something is missing.
b. Can you share your configuration (my.cnf for the all 3 nodes).

Changed in percona-xtradb-cluster:
status: New → Incomplete
Revision history for this message
Mrten (bugzilla-ii) wrote :

Binary searching our configs for a crash found a hit: add


If at default (=1) no crash occurs, but going upward from >1 you need multiple runs until you reach ~16 for an almost certain crash on each test case execution.

Revision history for this message
Mrten (bugzilla-ii) wrote :

Also I have to mention that it is always the slave nodes that crash, not the node you run the test case on.

Revision history for this message
Mrten (bugzilla-ii) wrote :

Keep in mind that wsrep_autoincrement_control needs to be sane (off :) as well.

Revision history for this message
Krunal Bauskar (krunal-bauskar) wrote :

Issue can be reproduced with upstream builder (Codership). You can file it with codership too so that when they fix the bug it get inherited in all variants.

Revision history for this message
Mrten (bugzilla-ii) wrote :

Thanks, reported here:

Can you remove the Incomplete tag to prevent this bug expiring?

Revision history for this message
Mrten (bugzilla-ii) wrote :

Do you perhaps have a more current contact address for upstream?

github is pretty silent (last reply on an issue was in march) and the google group from has not seen replies from codership employees for months.

Changed in percona-xtradb-cluster:
status: Incomplete → New
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to:

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.