An Xtrabackup SST may fail because of a ./ibdata1 race condition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
New
|
Undecided
|
Unassigned |
Bug Description
Repro steps:
- Run a galera cluster of 5 nodes with a random-halves network partitions on/off (via an iptables reject rule), unless the issue's reproduced an a node or nodes. For each partition, kill -9 the nodes in a minority halve, then start them back once the partition ended.
An example logs snippet:
WSREP_SST: [INFO] Proceeding with SST (20160426 08:41:30.576)
WSREP_SST: [INFO] Cleaning the existing datadir (20160426 08:41:30.578)
removed '/var/lib/
removed '/var/lib/
removed '/var/lib/
removed '/var/lib/
removed directory: '/var/lib/
removed '/var/lib/
removed '/var/lib/
removed '/var/lib/
WSREP_SST: [INFO] Cleaning the binlog directory /var/log/mysql as well (20160426 08:41:30.609)
WSREP_SST: [INFO] Evaluating socat -u TCP-LISTEN:
xbstream: Can't create/write to file './ibdata1' (Errcode: 17 - File exists)
Similar topic
https:/
Packages used: percona-
percona-xtrabackup 2.2.3-2.1build1
To ensure the issue will always happen, add to the config file:
[sst]
cpat = '.*galera\
this will make the ibdata file to be preserved and the File exists error to pop up.
description: | updated |
description: | updated |
description: | updated |
no longer affects: | percona-server |