Output to STDOUT and STDERR is not conventional

Reported by Daniel Nichter on 2010-01-28
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Percona XtraBackup
High
Alexey Kopytov
1.6
High
Alexey Kopytov
2.0
High
Alexey Kopytov

Bug Description

Both xtrabackup and innobackupex make non-conventional use of STDOUT and STDERR. Afaik, it's convention that all warnings and errors print to STDERR and everything else prints to STDOUT. At present, the programs mix and match, which is not only confusing but makes it difficult to suppress normal output and see just errors/warnings by doing something like "xtrabackup >/dev/null". It also makes logging errors/warnings difficult because you can't "xtrabackup 1>output.txt 2>errors.txt".

I submitted a branch that fixes this: lp:~percona-dev/percona-xtrabackup/conventional-stdout-stderr

Bug 463691 is related.

Daniel Nichter (daniel-nichter) wrote :

Ignore that branch. I forgot to merge another into trunk then commit and do other stuff. I'll repush...

Changed in percona-xtrabackup:
assignee: nobody → Daniel Nichter (daniel-percona)
importance: Undecided → Wishlist
Changed in percona-xtrabackup:
status: New → Confirmed
Alexey Kopytov (akopytov) wrote :

It is fixed in lp:~percona-dev/percona-xtrabackup/xtrabackup-parallel-compression. In that branch (which should eventually be merged into the next major XtraBackup release) the xtrabackup binary logs everything to stderr, no messages are ever logged to stdout.

Stewart Smith (stewart) on 2011-05-19
Changed in percona-xtrabackup:
assignee: Daniel Nichter (daniel-nichter) → Alexey Kopytov (akopytov)
status: Confirmed → In Progress

This causes Xtrabackup to fail when run from within crontab, since cron redirects STDERR. See duplicate bug #733663.

Changed in percona-xtrabackup:
importance: Wishlist → High
Changed in percona-xtrabackup:
status: In Progress → Fix Committed
milestone: none → 1.7.0beta1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers