Output to STDOUT and STDERR is not conventional

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

Related branches

Revision history for this message
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
Revision history for this message
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)
Changed in percona-xtrabackup:
assignee: Daniel Nichter (daniel-nichter) → Alexey Kopytov (akopytov)
status: Confirmed → In Progress
Revision history for this message
aeva black (tenbrae) wrote :

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
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-272

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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