innobackupex --stream=tar4ibd gives misleading error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Triaged
|
Low
|
Unassigned | ||
2.0 |
Won't Fix
|
Low
|
Unassigned | ||
2.1 |
Triaged
|
Low
|
Unassigned | ||
2.2 |
Triaged
|
Low
|
Unassigned | ||
2.3 |
Triaged
|
Low
|
Unassigned |
Bug Description
In the 1.X versions of xtrabackup --stream=tar4ibd was supported and in very old versions was the only way to do a safe streaming backup. This is no longer valid in 2.0+ in favor of just using --stream=tar, but using the option gives a confusing error message:
# innobackupex --stream=tar4ibd /tmp > /dev/null
innobackupex: Created backup directory /tmp
sh: backup-my.cnf: command not found
innobackupex: Error: Failed to stream 'backup-my.cnf': Inappropriate ioctl for device at /usr/bin/
This is true for any invalid stream method such as --stream=foo as well. I think a better error message here would indicate that an invalid stream method was requested and obviously innobackupex is doing some other slightly naughty things in this case as well.
tags: | added: low-hanging-fruit |
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PXB-880