mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
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:
@@ -2,10 +2,12 @@ include/master-slave.inc
|
||||
[connection master]
|
||||
include/rpl_restart_server.inc [server_number=2 parameters: --report-port=9000]
|
||||
include/start_slave.inc
|
||||
include/wait_for_slave_param.inc [Slave_IO_State]
|
||||
[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/rpl_restart_server.inc [server_number=2]
|
||||
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]
|
||||
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
|
||||
|
||||
@@ -32,6 +32,9 @@ connection master;
|
||||
|
||||
connection slave;
|
||||
--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]
|
||||
connection master;
|
||||
@@ -52,6 +55,9 @@ connection master;
|
||||
|
||||
connection slave;
|
||||
--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;
|
||||
sync_slave_with_master;
|
||||
|
||||
Reference in New Issue
Block a user