Merge lp:~percona-core/percona-xtrabackup/release-2.1.2 into lp:percona-xtrabackup/2.1

Proposed by Alexey Kopytov
Status: Merged
Approved by: Laurynas Biveinis
Approved revision: no longer in the source branch.
Merged at revision: 605
Proposed branch: lp:~percona-core/percona-xtrabackup/release-2.1.2
Merge into: lp:percona-xtrabackup/2.1
Diff against target: 224 lines (+108/-13)
6 files modified
VERSION (+1/-1)
innobackupex (+29/-11)
patches/innodb56.patch (+18/-0)
test/t/bug1180922.sh (+13/-0)
test/t/server_version.sh (+46/-0)
test/testrun.sh (+1/-1)
To merge this branch: bzr merge lp:~percona-core/percona-xtrabackup/release-2.1.2
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Approve
Review via email: mp+164344@code.launchpad.net

Description of the change

Bugfixes for the 2.1.2 hotfix release.

To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

OK.

Also any MPs to fix bug 11777182 and bug 1181092 / bug 1181099 for 2.0 are pre-approved.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'VERSION'
--- VERSION 2013-05-04 18:05:46 +0000
+++ VERSION 2013-05-17 16:01:30 +0000
@@ -1,1 +1,1 @@
1XTRABACKUP_VERSION=2.1.0rc11XTRABACKUP_VERSION=2.1.2
22
=== modified file 'innobackupex'
--- innobackupex 2013-05-07 08:12:22 +0000
+++ innobackupex 2013-05-17 16:01:30 +0000
@@ -139,6 +139,8 @@
139my $option_rebuild_indexes = '';139my $option_rebuild_indexes = '';
140my $option_rebuild_threads = 0;140my $option_rebuild_threads = 0;
141141
142my $option_debug_sleep_before_unlock = '';
143
142my %mysql;144my %mysql;
143my $option_backup = '';145my $option_backup = '';
144146
@@ -1403,6 +1405,7 @@
1403 }1405 }
14041406
1405 if ($con{dbh} && $con{keepalives}) {1407 if ($con{dbh} && $con{keepalives}) {
1408 $con{dbh}->do("SET SESSION wait_timeout=2147483");
1406 start_keepalives(\%con);1409 start_keepalives(\%con);
1407 }1410 }
14081411
@@ -1535,8 +1538,8 @@
1535 open(FILE, ">$galera_info") || 1538 open(FILE, ">$galera_info") ||
1536 Die "Failed to open file '$galera_info': $!";1539 Die "Failed to open file '$galera_info': $!";
15371540
1538 print FILE $con->{status}->{wsrep_local_state_uuid}->{Value};1541 print FILE $con->{status}->{wsrep_local_state_uuid}->{Value} . ":";
1539 print FILE $con->{status}->{wsrep_last_committed}->{Value};1542 print FILE $con->{status}->{wsrep_last_committed}->{Value} . "\n";
15401543
1541 close(FILE);1544 close(FILE);
15421545
@@ -1573,7 +1576,14 @@
1573 $position = $con->{slave_status}->{Exec_Master_Log_Pos};1576 $position = $con->{slave_status}->{Exec_Master_Log_Pos};
15741577
1575 if (!defined($master) || !defined($filename) || !defined($position)) {1578 if (!defined($master) || !defined($filename) || !defined($position)) {
1576 Die "Failed to get master binlog coordinates from SHOW SLAVE STATUS";1579 my $now = current_time();
1580
1581 print STDERR "$now $prefix Failed to get master binlog coordinates " .
1582 "from SHOW SLAVE STATUS\n";
1583 print STDERR "$now $prefix This means that the server is not a " .
1584 "replication slave. Ignoring the --slave-info option\n";
1585
1586 return;
1577 }1587 }
15781588
1579 # print slave status to a file1589 # print slave status to a file
@@ -1611,7 +1621,7 @@
1611 mysql_query($con, "COMMIT");1621 mysql_query($con, "COMMIT");
1612 }1622 }
1613 write_binlog_info($con);1623 write_binlog_info($con);
1614 write_galera_info if $option_galera_info;1624 write_galera_info($con) if $option_galera_info;
1615 1625
1616 $now = current_time();1626 $now = current_time();
1617 print STDERR "$now $prefix All tables locked and flushed to disk\n";1627 print STDERR "$now $prefix All tables locked and flushed to disk\n";
@@ -1625,6 +1635,12 @@
1625sub mysql_unlockall {1635sub mysql_unlockall {
1626 my $con = shift;1636 my $con = shift;
16271637
1638 if ($option_debug_sleep_before_unlock) {
1639 my $now = current_time();
1640 print STDERR "$now $prefix Debug sleep for ".
1641 "$option_debug_sleep_before_unlock seconds\n";
1642 sleep $option_debug_sleep_before_unlock;
1643 }
1628 mysql_query ($con, "UNLOCK TABLES");1644 mysql_query ($con, "UNLOCK TABLES");
16291645
1630 $now = current_time();1646 $now = current_time();
@@ -1976,7 +1992,9 @@
1976 'safe-slave-backup-timeout=i' => \$option_safe_slave_backup_timeout,1992 'safe-slave-backup-timeout=i' => \$option_safe_slave_backup_timeout,
1977 'compact' => \$option_compact,1993 'compact' => \$option_compact,
1978 'rebuild-indexes' => \$option_rebuild_indexes,1994 'rebuild-indexes' => \$option_rebuild_indexes,
1979 'rebuild-threads=i' => \$option_rebuild_threads1995 'rebuild-threads=i' => \$option_rebuild_threads,
1996 'debug-sleep-before-unlock=i' =>
1997 \$option_debug_sleep_before_unlock
1980 );1998 );
1981 1999
1982 if (!$rcode) {2000 if (!$rcode) {
@@ -2793,15 +2811,11 @@
2793 Die "MySQL 5.0 support was removed in Percona XtraBackup 2.1. The last version to support MySQL 5.0 was Percona XtraBackup 2.0.";2811 Die "MySQL 5.0 support was removed in Percona XtraBackup 2.1. The last version to support MySQL 5.0 was Percona XtraBackup 2.0.";
2794 }2812 }
27952813
2796 if($var_version =~ m/5\.1\.\d/ && $var_innodb_version =~ m/.*/) {2814 if($var_version =~ m/5\.1\.\d/ && !defined($var_innodb_version)) {
2797 Die "Support for MySQL 5.1 with builtin InnoDB (not the plugin) was removed in Percona XtraBackup 2.1. The last version to support MySQL 5.1 with builtin InnoDB was Percona XtraBackup 2.0.";2815 Die "Support for MySQL 5.1 with builtin InnoDB (not the plugin) was removed in Percona XtraBackup 2.1. The last version to support MySQL 5.1 with builtin InnoDB was Percona XtraBackup 2.0.";
2798 }2816 }
27992817
2800 if($var_version =~ m/5\.1\.\d/ && $var_innodb_version =~ m/1\.0\.\d+$/) {2818 if($var_version =~ m/5\.1\.\d/) {
2801 $ibbackup_binary = ($win eq 1 ? 'xtrabackup.exe' : 'xtrabackup');
2802 }
2803
2804 if($var_version =~ m/5\.1\.\d/ and $var_innodb_version =~ m/1\.0\.\d+-(rel)?\d/){
2805 $ibbackup_binary = ($win eq 1 ? 'xtrabackup.exe' : 'xtrabackup');2819 $ibbackup_binary = ($win eq 1 ? 'xtrabackup.exe' : 'xtrabackup');
2806 }2820 }
28072821
@@ -3037,6 +3051,10 @@
30373051
3038This option specifies the list of databases that innobackupex should back up. The option accepts a string argument or path to file that contains the list of databases to back up. The list is of the form "databasename1[.table_name1] databasename2[.table_name2] . . .". If this option is not specified, all databases containing MyISAM and InnoDB tables will be backed up. Please make sure that --databases contains all of the InnoDB databases and tables, so that all of the innodb.frm files are also backed up. In case the list is very long, this can be specified in a file, and the full path of the file can be specified instead of the list. (See option --tables-file.)3052This option specifies the list of databases that innobackupex should back up. The option accepts a string argument or path to file that contains the list of databases to back up. The list is of the form "databasename1[.table_name1] databasename2[.table_name2] . . .". If this option is not specified, all databases containing MyISAM and InnoDB tables will be backed up. Please make sure that --databases contains all of the InnoDB databases and tables, so that all of the innodb.frm files are also backed up. In case the list is very long, this can be specified in a file, and the full path of the file can be specified instead of the list. (See option --tables-file.)
30393053
3054=item --debug-sleep-before-unlock=SECONDS
3055
3056This is a debug-only option used by the XtraBackup test suite.
3057
3040=item --defaults-file=[MY.CNF]3058=item --defaults-file=[MY.CNF]
30413059
3042This option specifies what file to read the default MySQL options from. The option accepts a string argument. It is also passed directly to xtrabackup's --defaults-file option. See the xtrabackup documentation for details.3060This option specifies what file to read the default MySQL options from. The option accepts a string argument. It is also passed directly to xtrabackup's --defaults-file option. See the xtrabackup documentation for details.
30433061
=== modified file 'patches/innodb56.patch'
--- patches/innodb56.patch 2013-05-16 18:03:18 +0000
+++ patches/innodb56.patch 2013-05-17 16:01:30 +0000
@@ -1345,3 +1345,21 @@
1345 #ifndef UNIV_HOTBACKUP1345 #ifndef UNIV_HOTBACKUP
1346 /****************************************************************//**1346 /****************************************************************//**
1347 Starts Innobase and creates a new database if database files1347 Starts Innobase and creates a new database if database files
1348--- a/configure.cmake
1349+++ b/configure.cmake
1350@@ -965,14 +965,6 @@
1351 ENDIF()
1352
1353 CHECK_C_SOURCE_COMPILES("
1354- int main(int argc, char **argv)
1355- {
1356- extern char *__bss_start;
1357- return __bss_start ? 1 : 0;
1358- }"
1359-HAVE_BSS_START)
1360-
1361-CHECK_C_SOURCE_COMPILES("
1362 int main()
1363 {
1364 extern void __attribute__((weak)) foo(void);
1365
13481366
=== added file 'test/t/bug1180922.sh'
--- test/t/bug1180922.sh 1970-01-01 00:00:00 +0000
+++ test/t/bug1180922.sh 2013-05-17 16:01:30 +0000
@@ -0,0 +1,13 @@
1########################################################################
2# Bug #1180922: DBD::mysql error
3########################################################################
4
5. inc/common.sh
6
7MYSQLD_EXTRA_MY_CNF_OPTS="wait_timeout=5"
8
9start_server
10
11backup_dir=$topdir/backup
12
13innobackupex --no-timestamp --debug-sleep-before-unlock=6 $backup_dir
014
=== added file 'test/t/server_version.sh'
--- test/t/server_version.sh 1970-01-01 00:00:00 +0000
+++ test/t/server_version.sh 2013-05-17 16:01:30 +0000
@@ -0,0 +1,46 @@
1#########################################################################
2# Test server version auto-detection
3#########################################################################
4
5. inc/common.sh
6
7# This test can only work when the xtrabackup binary autodetected by
8# innobackupex matches the binary built for this configuration, i.e. with
9# XB_BUILD=(xtradb51|xtradb55|xtradb56|innodb56)
10
11case "$XB_BUILD" in
12 "xtradb51" | "xtradb55" | "xtradb56" | "innodb56")
13 ;;
14 *)
15 echo "Requires (xtradb51|xtradb55|xtradb56|innodb56) \
16build configuration" >> $SKIPPED_REASON
17 exit $SKIPPED_EXIT_CODE
18 ;;
19esac
20
21start_server
22
23# Remove the explicit --ibbackup option from IB_ARGS
24IB_ARGS="--defaults-file=$MYSQLD_VARDIR/my.cnf"
25
26backup_dir=$topdir/backup
27innobackupex --no-timestamp $backup_dir
28vlog "Backup created in directory $backup_dir"
29
30stop_server
31# Remove datadir
32rm -r $mysql_datadir
33# Restore sakila
34vlog "Applying log"
35vlog "###########"
36vlog "# PREPARE #"
37vlog "###########"
38innobackupex --apply-log $backup_dir
39vlog "Restoring MySQL datadir"
40mkdir -p $mysql_datadir
41vlog "###########"
42vlog "# RESTORE #"
43vlog "###########"
44innobackupex --copy-back $backup_dir
45
46start_server
047
=== modified file 'test/testrun.sh'
--- test/testrun.sh 2013-05-07 13:32:47 +0000
+++ test/testrun.sh 2013-05-17 16:01:30 +0000
@@ -234,7 +234,7 @@
234 export MYSQL_VERSION MYSQL_VERSION_COMMENT MYSQL_FLAVOR \234 export MYSQL_VERSION MYSQL_VERSION_COMMENT MYSQL_FLAVOR \
235 INNODB_VERSION XTRADB_VERSION INNODB_FLAVOR \235 INNODB_VERSION XTRADB_VERSION INNODB_FLAVOR \
236 XB_BIN IB_BIN IB_ARGS XB_ARGS MYSQLD_EXTRA_ARGS \236 XB_BIN IB_BIN IB_ARGS XB_ARGS MYSQLD_EXTRA_ARGS \
237 DEFAULT_IBDATA_SIZE237 DEFAULT_IBDATA_SIZE XB_BUILD
238}238}
239239
240export SKIPPED_EXIT_CODE=200240export SKIPPED_EXIT_CODE=200

Subscribers

People subscribed via source and target branches

to all changes: