~akopytov/percona-xtrabackup/bug1291299-2.1

  • Committer: Alexey Kopytov
  • Date: 2014-04-30 13:11:44 UTC
  • Revision ID: akopytov@gmail.com-20140430131144-1gwojj6mo0quzxg9
Bug #1291299: xtrabackup_56 crashes with segfault during --prepare

The problem was that if a remote InnoDB tablespace got CREATEd or
ALTERed during the backup, an attempt to prepare such a backup later
would lead to an xtrabackup crash.

The reason is that InnoDB code that replays MLOG_FILE_CREATE2 log
records does not support remote tablespaces, because the remote path is
not stored in the record. fil_create_new_single_table_tablespace(),
however, assumes the remote path to be known when a tablespace is marked
as remote in the data dictionary. Which is not a problem for InnoDB per
se, as log records corresponding to DDL operations are ignored on InnoDB
recovery (and thus, fil_create_new_single_table_tablespace() is not
called), but it is a problem for InnoDB hot backup tools such as
XtraBackup, which do have to replace such records.

Fixed by making XtraBackup ignore the ?remote tablespace? data
dictionary flag in fil_create_new_single_table_tablespace(). XtraBackup
recovery assumes all tablespaces to be local, and relies on innobackupex
to handle .isl files and to restore remote tablespaces to the proper
locations on --copy-back.
Filename Latest Rev Last Changed Committer Comment Size
..
contrib 241.3.1 13 years ago Daniël van Eeden Add contrib directory with an backup script exampl Diff
doc 213.3.1 13 years ago Aleksandr Kuzminsky Added XtraBackup manual page Diff
patches 228.1.2 13 years ago Alexey Kopytov Port XtraBackup to Percona Server 5.5.9-beta20.1 c Diff
src 385.1.1 12 years ago Alexey Kopytov Rebase of the parallel compression patch on new tr Diff
test 134.1.1 13 years ago Aleksandr Kuzminsky Added the XtraBackup test framework Diff
utils 30.1.2 15 years ago Vadim Tkachenko directory restructure Diff
.bzrignore 733 10 years ago Hrvoje Matijakovic - PXB-2.1.8 release notes - removed the percona-th 222 bytes Diff Download File
BUILD-WIN.txt 244.4.1 13 years ago Alexey Kopytov Added initial support for Windows builds: - remov 2.9 KB Diff Download File
BUILD.txt 610.1.1 10 years ago Hrvoje Matijakovic - bugs fixed: Bug #1190663 and Bug #1181317 - re 2.2 KB Diff Download File
CMakeLists.txt 244.4.1 13 years ago Alexey Kopytov Added initial support for Windows builds: - remov 1.6 KB Diff Download File
COPYING 174.1.1 13 years ago Stewart Smith add COPYING file with GPLv2 license. xtrabackup is 18.6 KB Diff Download File
innobackupex.pl 729 10 years ago Alexey Kopytov Merged lp:~akopytov/percona-xtrabackup/bug1285166- 165 KB Diff Download File
Makefile 737.2.1 10 years ago Alexey Kopytov Implementation of https://blueprints.launchpad.net 2.9 KB Diff Download File
VERSION 732.1.1 10 years ago Alexey Bychko xtrabackup release 2.1.8 25 bytes Diff Download File