innobackupex silently ignores databases it cannot open
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
New
|
Undecided
|
Unassigned |
Bug Description
If innobackupex does not have permission to open a subdirectory of /var/lib/mysql (but does have permission to open /var/lib/mysql itself) it creates an empty directory in the backup and says that it completed OK. It should fail in this case.
The following patch identifies the line that should be checking for an error:
*** innobackupex~ Fri Sep 21 22:12:47 2012
--- innobackupex Fri Sep 21 22:23:50 2012
***************
*** 1995,2001 ****
}
# copy files of this database
! opendir(DBDIR, "$source_
@list = grep(/\
closedir DBDIR;
$file_c = @list;
--- 1995,2001 ----
}
# copy files of this database
! opendir(DBDIR, "$source_
@list = grep(/\
closedir DBDIR;
$file_c = @list;
This patch is insufficient since it does not kill the xtrabackup subprocess running during this code, but it shows where the check ought to be inserted.
This is a duplicate of bug #664986.