Server IP : 172.67.216.182 / Your IP : 162.158.162.13 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/ndb_rpl/t/ |
Upload File : |
--echo Testing NDB$EPOCH2_TRANS algorithm #let $rpl_debug=1; let $clusterA_port=$MASTER_MYPORT; let $clusterB_port=$SLAVE_MYPORT; #let $clusterA_port=$SLAVE_MYPORT; #let $clusterB_port=$MASTER_MYPORT; #let $SWITCH_CLUSTER_ROLES=1; #echo $clusterA_port; #echo $clusterB_port; --echo Setup connections for use in this file --connect(clusterA,127.0.0.1,root,,test,$clusterA_port,) --connect(clusterB,127.0.0.1,root,,test,$clusterB_port,) --echo First we have Cluster A as Primary, Cluster B as Secondary --connection clusterA #SHOW VARIABLES LIKE '%server%'; SET GLOBAL ndb_slave_conflict_role="PRIMARY"; --connection clusterB #SHOW VARIABLES LIKE '%server%'; SET GLOBAL ndb_slave_conflict_role="SECONDARY"; --connection clusterA let $PRIMARY_CONFLICT_ALG=\"NDB\$EPOCH2_TRANS()\"; let $SECONDARY_CONFLICT_ALG=\"NDB\$EPOCH2_TRANS()\"; --source suite/ndb_rpl/t/ndb_rpl_conflict_epoch_trans.inc --echo Next we have Cluster A as Secondary, Cluster B as Primary --connection clusterA SET GLOBAL ndb_slave_conflict_role="NONE"; SET GLOBAL ndb_slave_conflict_role="SECONDARY"; --connection clusterB SET GLOBAL ndb_slave_conflict_role="NONE"; SET GLOBAL ndb_slave_conflict_role="PRIMARY"; --echo We set a special control var to allow the generic scripts --echo to handle this topology let $SWITCH_CLUSTER_ROLES=1; --echo Remove some connections which can't be setup twice (ugly) --disconnect master --disconnect master1 --disconnect slave --disconnect slave1 --source suite/ndb_rpl/t/ndb_rpl_conflict_epoch_trans.inc # TODO : Switch back to A Primary, B Secondary? --connection clusterA SET GLOBAL ndb_slave_conflict_role="NONE"; --connection clusterB SET GLOBAL ndb_slave_conflict_role="NONE";