⚝
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
/
suite
/
rpl
/
t
/
View File Name :
rpl_mts_submode_switch_without_reset_slave.test
# The motive of this test case is to test the # mts submode switch between master parallel to dbname and vice-versa # without using RESET SLAVE. The idea is that the two submode should work # seamlessly. --source include/have_debug.inc --source include/not_group_replication_plugin.inc --source include/have_myisam.inc --source include/master-slave.inc --let $saved_debug=`SELECT @@global.DEBUG` SET GLOBAL DEBUG ='+d,set_commit_parent_150'; --connection slave # save MTS submode --let $saved_submode= `SELECT @@slave_parallel_type` --source include/stop_slave.inc #setup 2 connections to master --connect(m1, localhost,root,,,$MASTER_MYPORT) --connect(m2, localhost,root,,,$MASTER_MYPORT) --echo #setup the databases and tables --connection m1 CREATE DATABASE db1; CREATE TABLE db1.t (a int) engine=innodb; --connection m2 CREATE DATABASE db2; CREATE TABLE db2.t (a int) engine=myisam; --connection master SET GLOBAL DEBUG ='-d,set_commit_parent_150'; SET GLOBAL DEBUG ='+d,set_commit_parent_100'; --connection m1 INSERT INTO db1.t values (1),(2),(3); --connection m2 INSERT INTO db2.t values (1),(2),(3); # DEFAULT ========> DATABASE --connection slave SET GLOBAL slave_parallel_type='DATABASE'; --source include/start_slave.inc --connection master --source include/sync_slave_sql_with_master.inc --let diff_tables= master:db1.t,slave:db1.t --source include/diff_tables.inc --let diff_tables= master:db2.t, slave:db2.t --source include/diff_tables.inc --source include/stop_slave.inc --connection master SET GLOBAL DEBUG ='-d,set_commit_parent_100'; SET GLOBAL DEBUG ='+d,set_commit_parent_150'; --connection m1 INSERT INTO db1.t values (1),(2),(3); --connection m2 INSERT INTO db2.t values (1),(2),(3); # DATABASE ========> LOGICAL_CLOCK --connection slave SET GLOBAL slave_parallel_type='LOGICAL_CLOCK'; --source include/start_slave.inc --connection master --source include/sync_slave_sql_with_master.inc --let diff_tables= master:db1.t,slave:db1.t --source include/diff_tables.inc --let diff_tables= master:db2.t, slave:db2.t --source include/diff_tables.inc --source include/stop_slave.inc --connection master SET GLOBAL DEBUG ='-d,set_commit_parent_150'; SET GLOBAL DEBUG ='+d,set_commit_parent_100'; --connection m1 INSERT INTO db1.t values (1),(2),(3); --connection m2 INSERT INTO db2.t values (1),(2),(3); # LOGICAL_CLOCK ========> DATABASE --connection slave SET GLOBAL slave_parallel_type='DATABASE'; --source include/start_slave.inc --connection master --source include/sync_slave_sql_with_master.inc --let diff_tables= master:db1.t,slave:db1.t --source include/diff_tables.inc --let diff_tables= master:db2.t, slave:db2.t --source include/diff_tables.inc #clean up --connection master DROP DATABASE db1; DROP DATABASE db2; --source include/sync_slave_sql_with_master.inc --connection slave --source include/stop_slave.inc --disable_query_log --disable_result_log --eval SET GLOBAL slave_parallel_type= '$saved_submode' --source include/start_slave.inc --connection master --eval SET GLOBAL DEBUG='$saved_debug' --enable_query_log --enable_result_log --source include/rpl_end.inc