Commit 58cb8cbe authored by Andrei Elkin's avatar Andrei Elkin

Bug #34647 rpl_temporary discovers more than one dump thread and fails to select

Many dump threads can exist due to a way the new version of mtr governs suites.

For this immediate problem the test is refined not to use I_S but rather to reconnect
explicitly with preserving logics of a an old target bug fixes verification.
parent e84b9159
......@@ -76,9 +76,9 @@ drop table t1,t2;
create temporary table t3 (f int);
create temporary table t4 (f int);
create table t5 (f int);
select id from information_schema.processlist where command='Binlog Dump' into @id;
kill @id;
stop slave;
insert into t5 select * from t4;
start slave;
select * from t5 /* must be 1 after reconnection */;
f
drop temporary table t4;
......
......@@ -138,20 +138,21 @@ sync_slave_with_master;
#
# Bug#17284 erroneous temp table cleanup on slave
# The test targets at verifying that reconnected slave
# retained the former session's temporary tables
#
connection master;
create temporary table t4 (f int);
create table t5 (f int);
sync_slave_with_master;
# connection slave
stop slave; # to prepare for reconnecting w/o waiting for timeout
connection master;
# find dumper's $id
select id from information_schema.processlist where command='Binlog Dump' into @id;
kill @id; # to stimulate reconnection by slave w/o timeout
insert into t5 select * from t4;
save_master_pos;
connection slave;
start slave;
sync_with_master;
select * from t5 /* must be 1 after reconnection */;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment