Backup fails if DROP DATABASE executed during backup

Bug #337944 reported by Percona
2
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
Medium
Unassigned

Bug Description

./xtrabackup --backup
>> log scanned up to (3 586332287)
Copying ./ibdata1
     to /data/backup/ibdata1
        ...done
Copying ./sbtest/sbtest.ibd
     to /data/backup/sbtest/sbtest.ibd
        ...done
Copying ./test/district.ibd
     to /data/backup/test/district.ibd
        ...done
Copying ./test/order_line.ibd
     to /data/backup/test/order_line.ibd
>> log scanned up to (3 586332287)
>> log scanned up to (3 586332287)
        ...done
090304 13:06:38 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
090304 13:06:38 InnoDB: Fatal error: cannot open ./test/customer.ibd
.InnoDB: Have you deleted .ibd files under a running mysqld server?

Not sure how to handle it properly

Revision history for this message
Peter Zaitsev (pz-percona) wrote : Re: [Percona-discussion] [Bug 337944] [NEW] Backup fails if DROP DATABASE executed during backup

Percona,

How does Innodb handles it during recovery ?

If we have crash just after DROP DATABASE - the log records will
contain such records right ?

I assume we can just ignore records which correspond to non existing
tables... I also assume if table of the same name is created the
internal table ID will be different ?

Wednesday, March 4, 2009, 1:08:06 PM, you wrote:

> Public bug reported:

> ./xtrabackup --backup
>>> log scanned up to (3 586332287)
> Copying ./ibdata1
> to /data/backup/ibdata1
> ...done
> Copying ./sbtest/sbtest.ibd
> to /data/backup/sbtest/sbtest.ibd
> ...done
> Copying ./test/district.ibd
> to /data/backup/test/district.ibd
> ...done
> Copying ./test/order_line.ibd
> to /data/backup/test/order_line.ibd
>>> log scanned up to (3 586332287)
>>> log scanned up to (3 586332287)
> ...done
> 090304 13:06:38 InnoDB: Operating system error number 2 in a file operation.
> InnoDB: The error means the system cannot find the path specified.
> 090304 13:06:38 InnoDB: Fatal error: cannot open ./test/customer.ibd
> .InnoDB: Have you deleted .ibd files under a running mysqld server?

> Not sure how to handle it properly

> ** Affects: percona-xtrabackup
> Importance: Undecided
> Status: New

--
Peter Zaitsev, CEO, Percona Inc.
Tel: +1 888 401 3401 ext 501 Skype: peter_zaitsev
24/7 Emergency Line +1 888 401 3401 ext 911
Attend the 2009 Percona Performance Conf
Apr 22-23 http://conferences.percona.com/

Revision history for this message
Yasufumi Kinoshita (yasufumi-kinoshita) wrote :

Thank you.
I have fixed it to continue.

Changed in percona-xtrabackup:
status: New → Fix Committed
Changed in percona-xtrabackup:
importance: Undecided → Medium
status: Fix Committed → Fix Released
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-521

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

Other bug subscribers

Remote bug watches

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