innobackupex --copy-back fails with an empty innodb-data-home-dir

Bug #1049291 reported by Alexey Kopytov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
Low
Alexey Kopytov
1.6
Won't Fix
Low
Unassigned
2.0
Won't Fix
Undecided
Unassigned
2.1
Fix Released
High
Alexey Kopytov
2.2
Fix Released
Low
Alexey Kopytov

Bug Description

According to http://dev.mysql.com/doc/refman/5.5/en/innodb-parameters.html#sysvar_innodb_data_home_dir an empty string is a valid value for innodb_data_home_dir:

"
If you specify the value as an empty string, you can use absolute file paths in innodb_data_file_path.
"

However, innobackupex --copy-back will fail with the following error if the value of innodb_data_home_dir read from my.cnf is an empty string:

"
Original InnoDB data directory does not exist! at /Users/kaa/src/launchpad/percona-xtrabackup/2.0/innobackupex line 567.
"

Indeed, the directory with an empty name does not exist, but it should skip the check in this case.

If one changes the value in my.cnf to "/" (which is equivalent to an empty string, the error becomes:

"
Original InnoDB data directory is not empty! at /Users/kaa/src/launchpad/percona-xtrabackup/2.0/innobackupex line 571.
"

Indeed, the root directory is not empty, but it should not be :) We should not complain about it if innodb_data_home_dir is an absolute path.

Tags: pxc

Related branches

Changed in percona-xtrabackup:
status: New → Triaged
Stewart Smith (stewart)
Changed in percona-xtrabackup:
importance: Undecided → Low
tags: added: pxc
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-84

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.