Server IP : 172.67.216.182 / Your IP : 172.70.147.186 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/rpl/t/ |
Upload File : |
# #BUG#13333431 : INCORRECT DEFAULT PORT IN 'SHOW SLAVE HOSTS' OUTPUT # # ==== Purpose ==== # # The test show the default value printed for the slave's port number if the # --report-port= <some value> is not set on the slave. This is different from # the present scenario which show 3306 as the default value if the report-port # is not set on the slave. # #====Method==== # # Start replication with report port set to 9000 and restart the slave. # In this case on doing SHOW SLAVE HOSTS on the master, we get the port number # of the slave to be 9000. # In the second case restart the slave server with report port not set. In this # case on doing SHOW SLAVE HOSTS on the master, we get the actual port number # of the slave (ie. SLAVE_PORT). source include/master-slave.inc; source include/have_binlog_format_mixed.inc; connection master; # 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 # number in certain situations. --let $rpl_server_number= 2 --let $rpl_server_parameters= --report-port=9000 --source include/rpl_restart_server.inc 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; # 9000 is the value of the port we should get. --let $report_port= query_get_value(SHOW SLAVE HOSTS, Port, 1) --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" --source include/assert.inc # 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. connection master; --let $rpl_server_number= 2 --let $rpl_server_parameters= --source include/rpl_restart_server.inc 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; --source include/sync_slave_sql_with_master.inc --echo [Slave restarted with the report-port set to the value of slave's port number] connection master; # The value reported is the actual value of the slave's port. --let $report_port= query_get_value(SHOW SLAVE HOSTS, Port, 1) --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" --source include/assert.inc --source include/rpl_end.inc