xbstream stream mode issues a warning on standard output messing up the backup stream

Bug #1256942 reported by Endre Hirling
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
High
Alexey Kopytov
2.1
Fix Released
High
Alexey Kopytov
2.2
Fix Released
High
Alexey Kopytov

Bug Description

Using

innobackupex --slave-info --stream=xbstream --compress --compact > backup.xbstream

from percona-xtrabackup 2.1.6-702-1.precise

backup.xbstream will contain a warning message at the beginning so xbstream cannot restore the files until it's removed.

Related branches

Revision history for this message
Endre Hirling (endre-hirling) wrote :

The beginning of the stream looks like:

# A software update is available:
# * Security vulnerability. See http://www.mysqlperformanceblog.com/2012/09/10/introducing-the-version-check-feature-in-percona-toolkit/

XBSTCK01^@P^O^@^@^@./backup-my.cnf^M^A^@^@^@^@^@^@^@^@^@^@^@^@^@^@<C3>^SV<# This MySQL options file was generated by innobackupex-1.5.1.

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

@Endre,

Not able to replicate with default binary, I see XBSTCK01 as the
first word in header, though it may be due to version-check
(which you can circumvent with --no-version-check). Also, you are
missing temporary directory (usually /tmp) on that cmdline.

Revision history for this message
Endre Hirling (endre-hirling) wrote :

Unfortunately I'm not able to reproduce this any more either, despite not changing anything in the environment, so I think it's safe to close this issue as unreproducable. Thanks for investigating.

Changed in percona-xtrabackup:
status: New → Invalid
Revision history for this message
Alexey Kopytov (akopytov) wrote :

Garbage in the xbstream output was indeed produced by the VersionCheck feature. Whether it will produce any output on STDOUT depends on many factors:

- presence of the state file in one of the following locations: /etc/percona/percona-version-check, /etc/percona-toolkit/percona-version-check, /tmp/percona-version-check, $HOME/percona-version-check
- time when the last version check was performed per the state file
- server version being backed up
- whether the VersionCheck database at v.percona.com contains any records corresponding to the server version

The workaround is to disable VersionCheck with the --no-version-check option.

Changed in percona-xtrabackup:
status: Invalid → Triaged
tags: added: low-hanging-fruit
Revision history for this message
Willem Fibbe (willem-x) wrote :

More debug-output regarding 'magic chunk' errors might help getting insight into what causes the stream to be corrupted (in the future).

After compiling xbstream with the attached patch, from the output I could see we were experiencing this bug, for instance.

This might help debug other issues.

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

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.