ShahriyarR / MySQL-AutoXtraBackup

MySQL-AutoXtraBackup commandline tool written in Python 3 based on Percona XtraBackup
https://autoxtrabackup.azepug.az/
MIT License
141 stars 78 forks source link

Pass --kill-wait-query-type as general option to xtrabackup for --test_mode configs #220

Closed ShahriyarR closed 6 years ago

ShahriyarR commented 6 years ago

Full options to pass to xtrabackup:

--kill-wait-query-type=all --kill-long-queries-timeout=900 --kill-long-query-type=all

According to: https://bugs.launchpad.net/percona-xtrabackup/+bug/1736177

It may cause the segfault

ShahriyarR commented 6 years ago

So according to the doc: https://www.percona.com/doc/percona-xtrabackup/2.1/innobackupex/improved_ftwrl.html

I need non-Innodb table with long running queries, so sleep() queries will not help here.

ShahriyarR commented 6 years ago
ShahriyarR commented 6 years ago

Now it is working. The combination of those options: --ftwrl-wait-timeout=0 --ftwrl-wait-query-type=all --ftwrl-wait-threshold=1 --kill-wait-query-type=all --kill-long-query-type=all --kill-long-queries-timeout=1

In order to force Xtrabackup to use FTWRL and not Backup Locks, you should pass --no-backup-locks option as well.