Commit b2ec8249 authored by Luis Soares's avatar Luis Soares

BUG#12416700: RPL_SHOW_SLAVE_HOSTS FAILS SPORADICALLY (TIMEOUT

              IN WAIT_SHOW_CONDITION) 

There was a typo in the name of one of the parameters to the
include file wait_show_condition. The parameter name was being
set to "connection" instead of "condition".

We fix this typo, improve one instruction in the test case and
deploy parameter checks inside wait_show_condition.inc.
parent 724cc400
...@@ -31,6 +31,21 @@ ...@@ -31,6 +31,21 @@
# Created: 2009-02-18 mleich # Created: 2009-02-18 mleich
# #
if (!$condition)
{
--die ERROR IN TEST: the "condition" variable must be set
}
if (!$field)
{
--die ERROR IN TEST: the "field" variable must be set
}
if (!$show_statement)
{
--die ERROR IN TEST: the "show_statement" variable must be set
}
let $max_run_time= 30; let $max_run_time= 30;
if ($wait_timeout) if ($wait_timeout)
{ {
......
...@@ -8,8 +8,7 @@ SHOW SLAVE HOSTS; ...@@ -8,8 +8,7 @@ SHOW SLAVE HOSTS;
Server_id Host Port Master_id Server_id Host Port Master_id
3 slave2 DEFAULT_PORT 1 3 slave2 DEFAULT_PORT 1
2 SLAVE_PORT 1 2 SLAVE_PORT 1
STOP SLAVE IO_THREAD; include/stop_slave_io.inc
include/wait_for_slave_io_to_stop.inc
SHOW SLAVE HOSTS; SHOW SLAVE HOSTS;
Server_id Host Port Master_id Server_id Host Port Master_id
2 SLAVE_PORT 1 2 SLAVE_PORT 1
......
...@@ -23,14 +23,13 @@ connection master; ...@@ -23,14 +23,13 @@ connection master;
let $show_statement= SHOW SLAVE HOSTS; let $show_statement= SHOW SLAVE HOSTS;
let $field= Server_id; let $field= Server_id;
# 3 is server_id of slave2. # 3 is server_id of slave2.
let $connection= ='3'; let $condition= ='3';
source include/wait_show_condition.inc; source include/wait_show_condition.inc;
--replace_result $SLAVE_MYPORT SLAVE_PORT $DEFAULT_MASTER_PORT DEFAULT_PORT --replace_result $SLAVE_MYPORT SLAVE_PORT $DEFAULT_MASTER_PORT DEFAULT_PORT
SHOW SLAVE HOSTS; SHOW SLAVE HOSTS;
connection slave2; connection slave2;
STOP SLAVE IO_THREAD; --source include/stop_slave_io.inc
source include/wait_for_slave_io_to_stop.inc;
connection master; connection master;
let $show_statement= SHOW SLAVE HOSTS; let $show_statement= SHOW SLAVE HOSTS;
......
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