xtrabackup doesn't report file name in error message

Reported by Baron Schwartz on 2011-04-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup
Wishlist
Sergei Glushchenko
2.0
Wishlist
Sergei Glushchenko

Bug Description

XtraBackup has discovered corruption, but it doesn't say which file. This is really unhelpful -- can we make it report the file name it's trying to copy?

>> log scanned up to (3641358646355)
>> log scanned up to (3641358726531)
>> log scanned up to (3641358801203)
>> log scanned up to (3641358901725)
>> log scanned up to (3641358966742)
>> log scanned up to (3641359056359)
>> log scanned up to (3641359179243)
>> log scanned up to (3641359254766)
>> log scanned up to (3641359432127)
[01] xtrabackup: Database page corruption detected at page 2047850.
retrying...
[01] xtrabackup: Database page corruption detected at page 2047850.
retrying...
[01] xtrabackup: Database page corruption detected at page 2047850.
retrying...
[01] xtrabackup: Database page corruption detected at page 2047850.
retrying...
[01] xtrabackup: Database page corruption detected at page 2047850.
retrying...
[01] xtrabackup: Database page corruption detected at page 2047850.
retrying...
[01] xtrabackup: Database page corruption detected at page 2047850.
retrying...
[01] xtrabackup: Database page corruption detected at page 2047850.
retrying...
[01] xtrabackup: Database page corruption detected at page 2047850.
retrying...
[01] xtrabackup: Error: 10 retries resulted in fail. Thisfile seems to be
corrupted.
[01] xtrabackup: Error: xtrabackup_copy_datafile() failed.
[01] xtrabackup: Error: failed to copy datafile.

Baron Schwartz (baron-xaprb) wrote :

This is Percona customer case number 14619.

tags: added: cr
Changed in percona-xtrabackup:
assignee: nobody → Alexey Kopytov (akopytov)
status: New → In Progress
Alexey Kopytov (akopytov) wrote :

XtraBackup does report the file name when starting to copy the file:

xtrabackup_55 Ver undefined Rev undefined for 5.5.9 osx10.6 (i386)
[01] Copying ./ibdata1
     to /Users/kaa/src/percona/percona-xtrabackup/test/var/backup/2011-04-18_08-49-52/ibdata1
[01] ...done
[01] Copying ./incremental_sample/test.ibd
     to /Users/kaa/src/percona/percona-xtrabackup/test/var/backup/2011-04-18_08-49-52/incremental_sample/test.ibd

So it should be possible to figure out the file where the error has occurred. It's just that the log in the bug report is truncated.

Changed in percona-xtrabackup:
status: In Progress → Invalid
Alexey Kopytov (akopytov) wrote :

As discussed elsewhere, it would be nice to have XtraBackup mention the file name along with the error, e.g. "failed to copy test.ibd" rather than "failed to copy datafile."

Since that is a reasonable feature request, reopening the bug.

Changed in percona-xtrabackup:
status: Invalid → New
tags: added: fr
tags: added: i14619
Changed in percona-xtrabackup:
importance: Undecided → Wishlist
Stewart Smith (stewart) on 2012-02-07
Changed in percona-xtrabackup:
status: New → Triaged
Changed in percona-xtrabackup:
assignee: Alexey Kopytov (akopytov) → Sergei Glushchenko (sergei.glushchenko)
status: Triaged → In Progress
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers