Server IP : 104.21.38.3 / Your IP : 172.70.92.204 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#22305605 STOP SLAVE IO THREAD PRINTS WRONG LOST CONNECTION MESSAGE # IN ERROR LOG FILE. # Problem: # STOP SLAVE IO_THREAD closes socket communication between Master and Slave. # This prints an ERROR message in the error log # [ERROR] Error reading packet from server: Lost connection to MySQL server # during query (server_errno=2013). # Here the socket closed intentionally by the DBA using command 'STOP SLAVE IO_THREAD'. # Hence no need to print the message [ERROR] that says "Lost connection" which will # confusion the users/DBAs. # Steps to Reproduce: # 1) Execute some dummy statements to make sure replication is working fine. # 2) Stop I/O thread and see that there is no panic message printed in log file. # 3) Stop SQL thread and see that there is no panic message printed in log file. # 4) Stop both I/O and SQL threads and see that there is no panic message printed # in log file. # ################################################################################ --source include/master-slave.inc # Execute dummy statements on Master and sync with Slave. CREATE TABLE t1(i INT); DROP TABLE t1; --source include/sync_slave_sql_with_master.inc # Case:1 Stop and Start slave IO thread --source include/stop_slave_io.inc --source include/start_slave_io.inc # Make sure that there is no "Lost connection" error found in error log file --let SEARCH_FILE=$MYSQLTEST_VARDIR/tmp/slave_log.err --let SEARCH_PATTERN=Lost connection to MySQL server during query --source include/search_pattern.inc # Case:2 Stop and Start slave SQL thread --source include/stop_slave_sql.inc --source include/start_slave_sql.inc # Make sure that there is no "Lost connection" error found in error log file --let SEARCH_FILE=$MYSQLTEST_VARDIR/tmp/slave_log.err --let SEARCH_PATTERN=Lost connection to MySQL server during query --source include/search_pattern.inc # Case:3 Stop and start slave IO and SQL thread --source include/stop_slave.inc --source include/start_slave.inc # Make sure that there is no "Lost connection" error found in error log file --let SEARCH_FILE=$MYSQLTEST_VARDIR/tmp/slave_log.err --let SEARCH_PATTERN=Lost connection to MySQL server during query --source include/search_pattern.inc --remove_file $MYSQLTEST_VARDIR/tmp/slave_log.err --source include/rpl_end.inc