SST does not clobber backup-my.cnf
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.5 |
Fix Released
|
Medium
|
Alexey Kopytov | |||
5.6 |
Fix Released
|
Medium
|
Alexey Kopytov |
Bug Description
Xtrabackup-v2 SST fails because backup-my.cnf exists:
2015-03-12 01:06:37 17347 [Note] WSREP: Requesting state transfer: success, donor: 1
WSREP_SST: [INFO] WARNING: Stale temporary SST directory: /var/lib/
WSREP_SST: [INFO] Proceeding with SST (20150312 01:06:37.793)
WSREP_SST: [INFO] Evaluating socat -u TCP-LISTEN:
WSREP_SST: [INFO] Cleaning the existing datadir and innodb-data/log directories (20150312 01:06:37.796)
removed `/var/lib/
removed `/var/lib/
removed `/var/lib/
removed `/var/lib/
removed `/var/lib/
removed `/var/lib/
removed `/var/lib/
WSREP_SST: [INFO] Waiting for SST streaming to complete! (20150312 01:06:37.834)
2015-03-12 01:06:39 17347 [Note] WSREP: (07d9cf83, 'tcp://
xbstream: Can't create/write to file '././backup-my.cnf' (Errcode: 17 - File exists)
xbstream: failed to create file.
2015/03/12 01:06:48 socat[17603] E write(1, 0x1060400, 8192): Broken pipe
WSREP_SST: [ERROR] Error while getting data from donor node: exit codes: 1 1 (20150312 01:06:48.105)
WSREP_SST: [ERROR] Cleanup after exit with status:32 (20150312 01:06:48.108)
2015-03-12 01:06:48 17347 [ERROR] WSREP: Process completed with error: wsrep_sst_
2015-03-12 01:06:48 17347 [ERROR] WSREP: Failed to read uuid:seqno from joiner script.
2015-03-12 01:06:48 17347 [ERROR] WSREP: SST failed: 32 (Broken pipe)
2015-03-12 01:06:48 17347 [ERROR] Aborting
mysql> show global variables like '%version%';
+------
| Variable_name | Value |
+------
| innodb_version | 5.6.22-72.0 |
| protocol_version | 10 |
| slave_type_
| version | 5.6.22-72.0-56-log |
| version_comment | Percona XtraDB Cluster (GPL), Release rel72.0, Revision 978, WSREP version 25.8, wsrep_25.8.r4150 |
| version_
| version_compile_os | Linux |
+------
7 rows in set (0.00 sec)
mysql> show global status like '%version%';
+------
| Variable_name | Value |
+------
| Ssl_version | |
| wsrep_protocol_
| wsrep_provider_
+------
3 rows in set (0.00 sec)
The backup-my.cnf is on /var/lib/ mysql/. sst/backup. my.cnf on the joiner.