Server IP : 104.21.38.3 / Your IP : 172.71.81.231 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/mysql-test/extra/rpl_tests/ |
Upload File : |
################################### # Author: JBM # Date: 2006-01-11 # Purpose: Second test case from # rpl_EE_err.test split out # from orginal to make the # first work with both RBR and SBR ################################### #REQUIREMENT: An INSERT with a faked duplicate entry error on #master should be replicated to slave and force the slave to stop #(since the slave can't cause a faked error to re-occur). ################################### -- source include/master-slave.inc connection master; eval create table t1 (a int, unique(a)) engine=$engine_type; set sql_log_bin=0; insert into t1 values(2); set sql_log_bin=1; --error ER_DUP_ENTRY insert into t1 values(1),(2); drop table t1; connection slave; --let $err= convert_error(ER_INCONSISTENT_ERROR) --eval call mtr.add_suppression("Slave SQL.*Query caused different errors on master and slave.*Error on master:.* error code=1062.*Error on slave:.* Error_code: $err") call mtr.add_suppression("The slave coordinator and worker threads are stopped, possibly leaving data in inconsistent state"); --echo (expect different error codes on master and slave) --let $slave_sql_errno= $err # can't print error text. MTS reports a separate error in this case. # Todo: to fix single-threaded-slave BUG#57287. --let $show_slave_sql_error= 0 --source include/wait_for_slave_sql_error.inc drop table t1; --source include/stop_slave.inc # Clear error messages. RESET SLAVE; # End of 4.1 tests --let $rpl_only_running_threads= 1 --source include/rpl_end.inc