Output to STDOUT and STDERR is not conventional

Bug #514068 reported by Daniel Nichter on 2010-01-28
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
Alexey Kopytov
Fix Released
Alexey Kopytov
Fix Released
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.

Related branches

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

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

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