BUG#13812374 - RPL.RPL_REPORT_PORT FAILS OCCASIONALLY ON PB2

Problem: The problem with the test is that the slave returns 
         from start_slave.inc call too early before the list
         is actually actualised. This caused the slave stale 
         data to be reported.

Fix: Added a wait in the test till the slave's IO status is 
     changed to "Waiting for master to send event" which 
     which ensures the list is correctly updated.
This commit is contained in:
Manish Kumar 2012-12-04 18:14:01 +05:30
commit 14b18b2785
2 changed files with 8 additions and 0 deletions

View file

@ -2,10 +2,12 @@ include/master-slave.inc
[connection master] [connection master]
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
include/wait_for_slave_param.inc [Slave_IO_State]
[Slave restarted with the report-port set to some value] [Slave restarted with the report-port set to some value]
include/assert.inc [The value shown for the slave's port number is user specified port number which is the value set for report-port.] include/assert.inc [The value shown for the slave's port number is user specified port number which is the value set for report-port.]
include/rpl_restart_server.inc [server_number=2] include/rpl_restart_server.inc [server_number=2]
include/start_slave.inc include/start_slave.inc
include/wait_for_slave_param.inc [Slave_IO_State]
[Slave restarted with the report-port set to the value of slave's port number] [Slave restarted with the report-port set to the value of slave's port number]
include/assert.inc [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.]
include/rpl_end.inc include/rpl_end.inc

View file

@ -32,6 +32,9 @@ connection master;
connection slave; connection slave;
--source include/start_slave.inc --source include/start_slave.inc
--let $slave_param= Slave_IO_State
--let $slave_param_value= Waiting for master to send event
--source include/wait_for_slave_param.inc
--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;
@ -52,6 +55,9 @@ connection master;
connection slave; connection slave;
--source include/start_slave.inc --source include/start_slave.inc
--let $slave_param= Slave_IO_State
--let $slave_param_value= Waiting for master to send event
--source include/wait_for_slave_param.inc
connection master; connection master;
sync_slave_with_master; sync_slave_with_master;