1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

BUG#13812374 - RPL.RPL_REPORT_PORT FAILS OCCASIONALLY ON PB2

Problem - The failure on PB2 is possbily due to the port number being still in
          use even after the server restarts which is not reflected in the
          server restart.
      
Fix - The problem is fixed by starting the servers forcefully using the option
      file and also the parameters for the server restart is passed correctly.

mysql-test/suite/rpl/t/rpl_report_port-master.opt:
  Option file for the master.
This commit is contained in:
Manish Kumar
2012-04-26 19:34:03 +05:30
parent 08ead005b1
commit 3f98e95354
3 changed files with 8 additions and 5 deletions

View File

@@ -3,8 +3,8 @@ include/master-slave.inc
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]
include/assert.inc [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 user specified port number which is the value set for report-port.]
include/rpl_restart_server.inc [server_number=2 parameters: --report-port=] include/rpl_restart_server.inc [server_number=2]
include/start_slave.inc include/start_slave.inc
[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.]

View File

@@ -0,0 +1 @@
--force-restart

View File

@@ -38,21 +38,23 @@ connection master;
# 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 $report_port= query_get_value(SHOW SLAVE HOSTS, Port, 1)
--let assert_text= The value shown for the slave's port number is 9000 which is the value set for report-port. --let assert_text= The value shown for the slave's port number is user specified port number which is the value set for report-port.
--let assert_cond= $report_port = "9000" --let assert_cond= $report_port = "9000"
--source include/assert.inc --source include/assert.inc
# Start the server with the report-port being passed with no value. So on SHOW SLAVE HOSTS # Start the server with the report-port being passed with no value. So on SHOW SLAVE HOSTS
# on the master the value of slave's port should be the actual value of the slave port. # on the master the value of slave's port should be the actual value of the slave port.
connection master;
--let $rpl_server_number= 2 --let $rpl_server_number= 2
--let $rpl_server_parameters= --report-port= --let $rpl_server_parameters=
--source include/rpl_restart_server.inc --source include/rpl_restart_server.inc
connection slave; connection slave;
--source include/start_slave.inc --source include/start_slave.inc
connection master;
sync_slave_with_master;
--echo [Slave restarted with the report-port set to the value of slave's port number] --echo [Slave restarted with the report-port set to the value of slave's port number]
connection master; connection master;