⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
mysql
/
mysql-test
/
extra
/
rpl_tests
/
View File Name :
rpl_stm_EE_err2.test
################################### # 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