if you do not use -i option with tar, innobackupex exits leaving xtrabackup running in the background

Bug #604116 reported by Swany
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona BenchWork
Invalid
Undecided
Unassigned
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Invalid
Undecided
Unassigned

Bug Description

example

innobackupex --stream=tar4ibd --user=root --tmpdir=./tmp ./backup | ( cd /tmp; tar xovf -)

After a short time, the tar extraction will fail because tar exists at zero byte by default (-i option prevents this). This will cause innobackupex to exit with an error message, but it leaves the xtrabackup script running in the background, continuing to copy log files. You will see occasional output on your terminal from the log copy process.

You must manually use the unix 'kill' command to terminate the process, as it is not connected to the terminal.

innobackupex should kill all spawned children when it exits on error.

Swany (greenlion)
Changed in percona-benchwork:
status: New → Invalid
Revision history for this message
Valentine Gostev (longbow) wrote :

Attempted to reproduce with this command:
~# innobackupex --stream=tar4ibd --user=root --tmpdir=./tmp /root/backup | ( cd /tmp; tar xovf -)

Innobackupex did not fail (and it should not)
tar without -i option does not fail neither, it just does not extract all data without -i option.

Changed in percona-xtrabackup:
status: New → Invalid
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-1094

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.