innobackupex --safe-slave-backup hangs when used on master
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
Medium
|
Alexey Kopytov | ||
2.1 |
Fix Released
|
Medium
|
Alexey Kopytov |
Bug Description
When I try to run innobackupex with --safe-slave-backup option, the process gets stuck on log scanned up to (.......) forever
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona Ireland Ltd 2009-2012. All Rights Reserved.
This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.
130613 12:14:02 innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:
130613 12:14:02 innobackupex: Connected to MySQL server
IMPORTANT: Please check that the backup run completes successfully.
At the end of a successful backup run innobackupex
prints "completed OK!".
innobackupex: Using mysql server version 5.5.31-30.3-log
innobackupex: Created backup directory /root/chafa2
130613 12:14:02 innobackupex: Starting ibbackup with command: xtrabackup_55 --defaults-
innobackupex: Waiting for ibbackup (pid=19307) to suspend
innobackupex: Suspend file '/root/
xtrabackup_55 version 2.1.3 for Percona Server 5.5.16 Linux (x86_64) (revision id: 608)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /var/lib/mysql
xtrabackup: Target instance is assumed as followings.
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
>> log scanned up to (6548331)
[01] Copying ./ibdata1 to /root/chafa2/
[01] ...done
>> log scanned up to (6548331)
130613 12:14:04 innobackupex: Continuing after ibbackup has suspended
Use of uninitialized value in pattern match (m//) at /usr/bin/
[centos@sqlmaster ~]$ >> log scanned up to (6548331)
>> log scanned up to (6548331)
>> log scanned up to (6548331)
>> log scanned up to (6548331)
>> log scanned up to (6548331)
>> log scanned up to (6548331)
>> log scanned up to (6548331)
...
Related branches
- Laurynas Biveinis (community): Approve
- Registry Administrators: Pending requested
-
Diff: 45 lines (+17/-5)2 files modifiedinnobackupex (+6/-5)
test/t/bug1190716.sh (+11/-0)
Can you confirm that the server is not a replication slave?
If so, we should just swap check for Slave_SQL_Running and $host_is_slave in wait_for_ safe_slave( ). The workaround is to not use --safe-slave-backup on non-slave servers.