xtrabackup: race condition when trying to open an already removed tablespace

Bug #713799 reported by Alexey Kopytov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
High
Alexey Kopytov

Bug Description

There is a possible race condition in xtrabackup when a table is dropped after the corresponding tablespace path has already been read from the tablespace memory cache, so xtrabackup fails with an InnoDB assertion failure in fil_node_open_file() when trying to open the .ibd file for copying later, or more specifically, when calling fil_space_get_zip_size() for it.

Related branches

Revision history for this message
Alexey Kopytov (akopytov) wrote :

The race leads to an InnoDB assertion failure when a table is dropped during XtraBackup run.

Symptoms:

110206 12:25:09 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
110206 12:25:09 InnoDB: Fatal error: cannot open ./test/test.ibd
.InnoDB: Have you deleted .ibd files under a running mysqld server?
110206 12:25:09 InnoDB: Assertion failure in thread 46984453581056 in file fil/fil0fil.c line 669
InnoDB: Failing assertion: 0
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/forcing-recovery.html
InnoDB: about forcing recovery.
innobackupex-1.5.1: Error: ibbackup child process has died at /usr/bin/innobackupex-1.5.1 line 534.

Changed in percona-xtrabackup:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Alexey Kopytov (akopytov)
Revision history for this message
Valentine Gostev (longbow) wrote :

Added test case for the subject problem in lp:~percona-dev/percona-xtrabackup/lp713799_test

Changed in percona-xtrabackup:
milestone: none → 1.6
Changed in percona-xtrabackup:
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-300

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.