~laurynas-biveinis/percona-xtrabackup/bug1098498-1132763-2.0

  • Committer: Laurynas Biveinis
  • Date: 2013-03-07 11:38:14 UTC
  • Revision ID: laurynas.biveinis@percona.com-20130307113814-dht5kzs415xuf9h7
Fix bug 1098498 (Sporadic xb_incremental_compressed_* failures in
Jenkins) and bug 1132763 (No need to shutdown servers cleanly before
wiping their datadirs in the testsuite).

Most tests shutdown the server cleanly before copying back the
restored datadir.  These shutdowns:
1) may timeout sporadically (bug 1098498);
2) are not required in the first place (bug 1132763), because the
server data is about to be wiped, thus kill -9 would work just as
fine.

Fixed by replacing stop_server() implementation to do kill -9 instead
of a clean shutdown.  Add a new function shutdown_server() that is
similar to the old stop_server() implementation.  Adjust the testcases:
1) ib_part_*: wipe the server dir, restore not only test database, but
all of the databases.  For the testcases that work by selecting a list
of tables to backup, make sure to include all of mysql and
performance_schema tables.
2) bug766033: replace the database corruption of poking one zero byte
to the first page with overwriting the start of the second page with
0xAAAAAAAA to reduce the risk of the previous corruption attempt not
corrupting anything due to the zero byte already existing at the
location.
3) bug766607: rewrite the testcase to use innobackupex instead of
xtrabackup so that it works with the wiped server data dir.
4) xb_incremental: remove the testcase as it becomes identical to
ib_incremental atfer the changes to support wiped server data dir.
5) xb_partial: likewise, becomes identical to ib_part_*.
6) xb_export: use shutdown_server instead of kill_server for syncing
with the end of a tablespace import.

Also remove an unused function stop_all_servers() in common.sh and fix
a typo in testrun.sh.
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 449 11 years ago Stewart Smith merge from 1.6: Bug #1021954: XtraBackup on MultiI 196 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 477.2.1 11 years ago Hrvoje Matijakovic Bug fixes for bug: Bug #1073502, Bug #1075269 and 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
File innobackupex 501 11 years ago Alexey Kopytov Bug #1114955: xtrabackup_pid remains existed after 104 KB Diff Download File
VERSION 497.1.2 11 years ago Ignacio Nin Bump version to 2.0.5 25 bytes Diff Download File