Server IP : 104.21.38.3 / Your IP : 172.70.189.35 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 : |
# WL#3584 GTID. # # Testing failover scenarios. --source include/have_innodb.inc --source include/have_binlog_format_mixed.inc # # Set up 3 server replication chain: M1 -> S2 -> S3. # Remove S2 and show M1 -> S3 works. # --let $rpl_topology= 1->2->3 --source include/rpl_init.inc --echo --connection server_1 create table t1 (a int not null auto_increment, b int not null, primary key(a)) engine=innodb; --source include/rpl_sync.inc --connection server_3 --source include/stop_slave.inc #--let $rpl_topology= 1->2, 1->3 #--source include/rpl_change_topology.inc --replace_result $SERVER_MYPORT_1 SERVER_MYPORT_1 --eval change master to master_port=$SERVER_MYPORT_1; --source include/start_slave.inc --connection server_1 insert into t1 values (NULL, 1); --let $sync_slave_connection= server_2 --source include/sync_slave_sql_with_master.inc --connection server_1 --let $sync_slave_connection= server_3 --source include/sync_slave_sql_with_master.inc --let $diff_tables= server_1:test.t1, server_2:test.t1, server_3:test.t1 --source include/diff_tables.inc # # remove master, and set up S2 -> S3 link # S3 proves to fail over S2 the new master. # --let $rpl_topology= 2->3 # --connection server_3 --source include/stop_slave.inc --connection server_1 insert into t1 values (NULL, 2); # won't be seen by S3 until it connects to S2 --let $sync_slave_connection= server_2 --source include/sync_slave_sql_with_master.inc --source include/stop_slave.inc --connection server_3 --replace_result $SERVER_MYPORT_2 SERVER_MYPORT_2 --eval change master to master_port=$SERVER_MYPORT_2 --source include/start_slave.inc --connection server_2 --let $sync_slave_connection= server_3 --source include/sync_slave_sql_with_master.inc --let $diff_tables= server_1:test.t1, server_2:test.t1, server_3:test.t1 --source include/diff_tables.inc # Restore M1 -> S2 -> S3 --connection server_2 --replace_result $SERVER_MYPORT_1 SERVER_MYPORT_1 --eval change master to master_port=$SERVER_MYPORT_1 --source include/start_slave.inc # # Clean up # --echo *** Clean up *** --connection server_1 DROP TABLE t1; --source include/rpl_sync.inc --source include/rpl_end.inc