Merge lp:~sergei.glushchenko/percona-xtrabackup/2.3-xb-bug1414221 into lp:percona-xtrabackup/2.3

Proposed by Sergei Glushchenko
Status: Needs review
Proposed branch: lp:~sergei.glushchenko/percona-xtrabackup/2.3-xb-bug1414221
Merge into: lp:percona-xtrabackup/2.3
Diff against target: 63 lines (+36/-1)
2 files modified
storage/innobase/xtrabackup/src/xtrabackup.cc (+4/-1)
storage/innobase/xtrabackup/test/t/bug1414221.sh (+32/-0)
To merge this branch: bzr merge lp:~sergei.glushchenko/percona-xtrabackup/2.3-xb-bug1414221
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Needs Information
Review via email: mp+248249@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) wrote :

See question from the bug report.

review: Needs Information

Unmerged revisions

5065. By Sergei Glushchenko

Automerge fix for bug 1414221 from 2.3 series.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'storage/innobase/xtrabackup/src/xtrabackup.cc'
2--- storage/innobase/xtrabackup/src/xtrabackup.cc 2015-01-06 15:58:39 +0000
3+++ storage/innobase/xtrabackup/src/xtrabackup.cc 2015-02-12 12:33:43 +0000
4@@ -6039,11 +6039,13 @@
5 && srv_start_lsn < metadata_last_lsn)) {
6 msg(
7 "xtrabackup: ########################################################\n"
8-"xtrabackup: # !!WARNING!! #\n"
9+"xtrabackup: # !!ERROR!! #\n"
10 "xtrabackup: # The transaction log file is corrupted. #\n"
11 "xtrabackup: # The log was not applied to the intended LSN! #\n"
12 "xtrabackup: ########################################################\n"
13 );
14+ msg("xtrabackup: Log applied to lsn " LSN_PF "\n",
15+ srv_start_lsn);
16 if (xtrabackup_incremental) {
17 msg("xtrabackup: The intended lsn is " LSN_PF "\n",
18 incremental_last_lsn);
19@@ -6051,6 +6053,7 @@
20 msg("xtrabackup: The intended lsn is " LSN_PF "\n",
21 metadata_last_lsn);
22 }
23+ exit(EXIT_FAILURE);
24 }
25
26 xb_write_galera_info();
27
28=== added file 'storage/innobase/xtrabackup/test/t/bug1414221.sh'
29--- storage/innobase/xtrabackup/test/t/bug1414221.sh 1970-01-01 00:00:00 +0000
30+++ storage/innobase/xtrabackup/test/t/bug1414221.sh 2015-02-12 12:33:43 +0000
31@@ -0,0 +1,32 @@
32+############################################################################
33+# Bug 1414221: Warning "The log was not applied to the intended LSN"
34+# should optionally be an error
35+############################################################################
36+. inc/common.sh
37+
38+if [ ${ASAN_OPTIONS:-undefined} != "undefined" ]
39+then
40+ skip_test "Incompatible with AddressSanitizer"
41+fi
42+
43+start_server --innodb_file_per_table
44+load_sakila
45+
46+${MYSQL} ${MYSQL_ARGS} sakila -e "DELETE FROM payment"
47+
48+# Full backup
49+# backup root directory
50+vlog "Starting backup"
51+
52+full_backup_dir=$topdir/full_backup
53+innobackupex --no-timestamp $full_backup_dir
54+
55+ls -al $full_backup_dir/xtrabackup_logfile
56+
57+sed -i -e 's/last_lsn = [0-9]*$/last_lsn = 999999999/' \
58+ $full_backup_dir/xtrabackup_checkpoints
59+
60+vlog "Preparing backup"
61+run_cmd_expect_failure $IB_BIN $IB_ARGS --apply-log \
62+ $full_backup_dir
63+vlog "Log applied to full backup"

Subscribers

People subscribed via source and target branches