Merge lp:~sergei.glushchenko/percona-xtrabackup/2.2-xb-bug1214274 into lp:percona-xtrabackup/2.2

Proposed by Sergei Glushchenko
Status: Merged
Approved by: Alexey Kopytov
Approved revision: no longer in the source branch.
Merged at revision: 4882
Proposed branch: lp:~sergei.glushchenko/percona-xtrabackup/2.2-xb-bug1214274
Merge into: lp:percona-xtrabackup/2.2
Diff against target: 38 lines (+12/-2)
1 file modified
xtrabackup/test/t/kill_long_selects.sh (+12/-2)
To merge this branch: bzr merge lp:~sergei.glushchenko/percona-xtrabackup/2.2-xb-bug1214274
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Review via email: mp+191994@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'xtrabackup/test/t/kill_long_selects.sh'
--- xtrabackup/test/t/kill_long_selects.sh 2013-05-26 07:18:14 +0000
+++ xtrabackup/test/t/kill_long_selects.sh 2013-10-21 14:08:09 +0000
@@ -68,7 +68,10 @@
6868
69function kill_all_queries()69function kill_all_queries()
70{70{
71 run_cmd $MYSQL $MYSQL_ARGS test <<EOF71 # we really want to ignore errors
72 # some connections can die by themselves
73 # between SELECT and killall
74 run_cmd $MYSQL $MYSQL_ARGS --force --batch test <<EOF
72 select concat('KILL ',id,';') from information_schema.processlist75 select concat('KILL ',id,';') from information_schema.processlist
73 where user='root' and time > 2 into outfile '$MYSQLD_TMPDIR/killall.sql';76 where user='root' and time > 2 into outfile '$MYSQLD_TMPDIR/killall.sql';
74 source $MYSQLD_TMPDIR/killall.sql;77 source $MYSQLD_TMPDIR/killall.sql;
@@ -90,7 +93,9 @@
90bg_run bg_select_pid "mysql_select 3"93bg_run bg_select_pid "mysql_select 3"
91bg_run bg_update_pid "sleep 1" "mysql_update 3"94bg_run bg_update_pid "sleep 1" "mysql_update 3"
9295
93innobackupex $topdir/full --kill-long-queries-timeout=5 \96sleep 8
97
98innobackupex $topdir/full --kill-long-queries-timeout=10 \
94 --kill-long-query-type=all99 --kill-long-query-type=all
95100
96bg_wait_ok $bg_select_pid101bg_wait_ok $bg_select_pid
@@ -99,6 +104,11 @@
99104
100105
101# ==============================================================106# ==============================================================
107# this case can succeed for two reasons
108# 1. update was waited for by innobackupex an finished successfully
109# by the time of kill_all_queries
110# 2. update was stared late and did not block FTWRL but was locked by
111# it. then it may be still alive by the time of kill_all_queries
102vlog "===================== case 2 ====================="112vlog "===================== case 2 ====================="
103bg_run bg_select_pid "mysql_select 200"113bg_run bg_select_pid "mysql_select 200"
104bg_run bg_update_pid "sleep 1" "mysql_update 5"114bg_run bg_update_pid "sleep 1" "mysql_update 5"

Subscribers

People subscribed via source and target branches