403Webshell
Server IP : 172.67.216.182  /  Your IP : 162.158.88.75
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/rpl/t/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

Youez - 2016 - github.com/yon3zu
LinuXploit