[MDEV-15252] DELETE with FKs crashes Galera nodes if wsrep_slave_threads>1 Created: 2018-02-08 Updated: 2020-08-25 Resolved: 2018-05-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera |
| Affects Version/s: | 10.2.12, 10.2.13, 10.3.5 |
| Fix Version/s: | 10.2.15 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Claudio Nanni | Assignee: | Sachin Setiya (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
It just takes a two(with more is the same) nodes Galera cluster with wsrep_slave_threads>1 on the Slave node(s).
|
| Comments |
| Comment by Zdravelina Sokolovska (Inactive) [ 2018-02-09 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
need server.cnf configurations of the Nodes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Claudio Nanni [ 2018-02-09 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
It's a brand new out-of-the-box 10.2.12, with default configuration(the one that comes with the package), just need to enable Galera and use wsrep_slave_threads=2 on one of the two nodes(the slave). The slave will crash. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Zdravelina Sokolovska (Inactive) [ 2018-02-09 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
claudio.nanni thank you for configurations ; it's not exactly the default configuration while the wsrep_sst_method is set to xtrabackup-v2 (default is rsync);
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Zdravelina Sokolovska (Inactive) [ 2018-02-12 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
was not reproduced either on 10.2.12
after step2 :
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Claudio Nanni [ 2018-02-12 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Just tested on 10.2.9, it crashes there as well with thousands of:
10.1.31 does not crash (I use tarballs but that should not be relevant.) winstone did you set wsrep_slave_threads>1 ? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Zdravelina Sokolovska (Inactive) [ 2018-02-12 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
yes , claudio.nanni, just as in the configurations you have supplied :wsrep_slave_thread=2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Claudio Nanni [ 2018-02-12 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
sst method is not important here, you can use any method. Interesting enough is that I tested on a RHEL7 VM and there I need to set wsrep_slave_threads>=3 to get the crash, so it could be also resource hence concurrency dependent, so if you can't reproduce it try to use higher values of wsrep_slave_threads. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Zdravelina Sokolovska (Inactive) [ 2018-02-14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
recreated on MariaDB 10.2.13 and xtrabackup version 2.4.9 with 2 Nodes and set wsrep_slave_threads=16
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sachin Setiya (Inactive) [ 2018-04-02 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
it is independent of sst_method and innodb_autoinc_lock_mode. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sachin Setiya (Inactive) [ 2018-04-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Patch for mdev-15611 also solves this (test case is passing without failing http://lists.askmonty.org/pipermail/commits/2018-April/012274.html ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Zdravelina Sokolovska (Inactive) [ 2018-04-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
appears also on 10.3.5
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sachin Setiya (Inactive) [ 2018-05-02 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
patch for mdev-15611 solves this | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sachin Setiya (Inactive) [ 2018-05-02 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Solved by mdev-15611 |