Commit a54e6e00 authored by Manish Kumar's avatar Manish Kumar

BUG#13812374 - RPL.RPL_REPORT_PORT FAILS OCCASIONALLY ON PB2

Fix - Changed the implementation of the condition check from the result file
      to using an assert.

mysql-test/suite/rpl/r/rpl_report_port.result:
  Updated the result file.
mysql-test/suite/rpl/t/rpl_report_port.test:
  Changed from the a condtional check to an assert.
parent 3ce20ed4
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
[The default value shown for the slave's port number is the actual port number of the slave] include/assert.inc [The default value shown for the slave's port number is the actual port number of the slave.]
SHOW SLAVE HOSTS;
Server_id Host Port Master_id
2 127.0.0.1 SLAVE_PORT 1
[The default value shown for the slave's port number is the actual port number of the slave]
include/rpl_restart_server.inc [server_number=2 parameters: --report-port=9000] include/rpl_restart_server.inc [server_number=2 parameters: --report-port=9000]
include/start_slave.inc include/start_slave.inc
[Slave restarted with the report-port set to some value] [Slave restarted with the report-port set to some value]
[The value shown for the slave's port number is 9000 which is the value set for report-port] include/assert.inc [The value shown for the slave's port number is 9000 which is the value set for report-port.]
SHOW SLAVE HOSTS;
Server_id Host Port Master_id
2 127.0.0.1 9000 1
include/rpl_end.inc include/rpl_end.inc
...@@ -21,16 +21,10 @@ source include/master-slave.inc; ...@@ -21,16 +21,10 @@ source include/master-slave.inc;
connection master; connection master;
--echo [The default value shown for the slave's port number is the actual port number of the slave] --let $report_port= query_get_value(SHOW SLAVE HOSTS, Port, 1)
source include/show_slave_hosts.inc; --let assert_text= The default value shown for the slave's port number is the actual port number of the slave.
--let assert_cond= $report_port = "$SLAVE_MYPORT"
# SLAVE_PORT is the value of the port we should get. --source include/assert.inc
let $show_statement= SHOW SLAVE HOSTS;
let $field= Port;
let $condition= 'SLAVE_PORT';
source include/wait_show_condition.inc;
--echo [The default value shown for the slave's port number is the actual port number of the slave]
# Start the server with some value being passed to the report_port= <option> # Start the server with some value being passed to the report_port= <option>
# this will be used incase we have to mask the value of the slave's port # this will be used incase we have to mask the value of the slave's port
...@@ -46,14 +40,10 @@ connection slave; ...@@ -46,14 +40,10 @@ connection slave;
--echo [Slave restarted with the report-port set to some value] --echo [Slave restarted with the report-port set to some value]
connection master; connection master;
--echo [The value shown for the slave's port number is 9000 which is the value set for report-port]
--source include/show_slave_hosts.inc
# 9000 is the value of the port we should get. # 9000 is the value of the port we should get.
--let $report_port= query_get_value(SHOW SLAVE HOSTS, Port, 1)
let $show_statement= SHOW SLAVE HOSTS; --let assert_text= The value shown for the slave's port number is 9000 which is the value set for report-port.
let $field= Port; --let assert_cond= $report_port = "9000"
let $condition= '9000'; --source include/assert.inc
source include/wait_show_condition.inc;
--source include/rpl_end.inc --source include/rpl_end.inc
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