Server IP : 172.67.216.182 / Your IP : 172.71.124.155 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 : |
# ==== Purpose ==== # # This test will issue a CHANGE MASTER TO MASTER_DELAY while both replication # threads are stopped and there are content received by the I/O thread yet to # be applied by the SQL thread. # # The test case verifies that issuing the CHANGE MASTER will not purge the # relay log, and the replica will not lose master contents. # # ==== Related Bugs and Worklogs ==== # # BUG#23203678 CHANGING MASTER_DELAY AFTER STOP SLAVE RESULTS IN LOSS OF EVENTS # # This test case is binary log format agnostic --source include/have_binlog_format_mixed.inc --source include/master-slave.inc CREATE TABLE t1 (c1 int); --source include/sync_slave_sql_with_master.inc --source include/stop_slave_sql.inc --source include/rpl_connection_master.inc INSERT INTO t1 VALUES (1); --source include/sync_slave_io_with_master.inc # As a workaround, not stopping the I/O thread on line below would # prevent the slave from purging the relay log. --source include/stop_slave_io.inc CHANGE MASTER TO MASTER_DELAY=1; --source include/start_slave.inc --source include/rpl_connection_master.inc --source include/sync_slave_sql_with_master.inc --let $inserted_value=query_get_value(SELECT * FROM t1, c1, 1) --let $assert_text= Assert that the \$inserted_value is equal to 1 --let $assert_cond= "$inserted_value" = "1" --source include/assert.inc # Clean up --source include/stop_slave.inc CHANGE MASTER TO MASTER_DELAY=0; --source include/start_slave.inc --source include/rpl_connection_master.inc DROP TABLE t1; --source include/rpl_end.inc