Innobackupex hangs on fatal error in some cases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
High
|
Alexey Kopytov | ||
2.1 |
Fix Released
|
High
|
Alexey Kopytov | ||
2.2 |
Fix Released
|
High
|
Alexey Kopytov |
Bug Description
https:/
This happens when backing up an empty test database and a directory called /tmp/test already exists. Innobackupex fails here
This also hangs innobackupex and xtrabackup indefinitely.
Happens here:
opendir(DBDIR, "$source_
@list = grep(/\
closedir DBDIR;
$file_c = @list;
if ($file_c <= $backup_
} else {
print STDERR "$prefix Backing up files " .
}
if ($file_c == 0 && $option_stream) {
# Stream/encrypt empty directories by backing up a fake empty
# db.opt file, so that empty databases are created in the backup
die "Failed to create directory $option_
open XTRABACKUP_FH, "> $option_
|| die "Cannot create file $option_
close XTRABACKUP_FH;
die "Failed to remove file $database/db.opt: $!";
die "Failed to remove directory $database: $!";
}
mkdir(
Related branches
- Alexey Kopytov (community): Approve
-
Diff: 45 lines (+5/-12)2 files modifiedinnobackupex.pl (+4/-11)
src/xtrabackup.cc (+1/-1)
- Alexey Kopytov (community): Approve
-
Diff: 33 lines (+3/-2)2 files modifiedstorage/innobase/xtrabackup/innobackupex.pl (+2/-1)
storage/innobase/xtrabackup/src/xtrabackup.cc (+1/-1)
Even providing a temporary directory on command line doesn't work (ie. the last option), only tmpdir argument works here, even though this is an innobackupex exception.