Server IP : 104.21.38.3 / Your IP : 172.71.82.70 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/extra/binlog_tests/ |
Upload File : |
# ==== Purpose ==== # # Execute a 'CREATE...SELECT' query, stop at several given sync points. # kill the 'CREATE...SELECT' query from other connection. Then check if # 'CREATE TABLE' event was logged. # # ==== Usage ==== # # [--let $engine= MyISAM | --let $engine= InnoDB] # --source extra/binlog_tests/binlog_row_kill_create_select.test # # ==== References ==== # # Bug#20742519 KILL `CREATE TABLE ..SELECT` MAY LEAD TO REPLICATION BROKEN --source include/have_binlog_format_row.inc --source include/not_gtid_enabled.inc --source include/have_debug.inc --source include/have_debug_sync.inc --eval CREATE TABLE t1 (c1 INT) ENGINE = $engine INSERT INTO t1 VALUES (1); INSERT INTO t1 VALUES (2); RESET MASTER; # Test case1 --connect(con1,localhost,root) --connection con1 --let $statement_connection= con1 --let $statement= CREATE TABLE t2 ENGINE = $engine SELECT c1 FROM t1 --let $sync_point= create_select_before_write_create_event --let $auxiliary_connection= default --source include/kill_at_sync_point.inc --disconnect con1 # Test case2 --connect(con2,localhost,root) --connection con2 --let $statement_connection= con2 --let $statement= CREATE TABLE t3 ENGINE = $engine SELECT c1 FROM t1 --let $sync_point= create_select_after_write_create_event --let $auxiliary_connection= default --source include/kill_at_sync_point.inc --disconnect con2 # Test case3 --connect(con3,localhost,root) --connection con3 --let $statement_connection= con3 --let $statement= CREATE TABLE t4 ENGINE = $engine SELECT c1 FROM t1 --let $sync_point= create_select_after_write_rows_event --let $auxiliary_connection= default --source include/kill_at_sync_point.inc --disconnect con3 --connection default --echo # Verify that 'CREATE TABLE t2', 'CREATE TABLE t3' and --echo # 'CREATE TABLE t4' events were not logged. --source include/show_binlog_events.inc DROP TABLE t1;