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

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/ndb_rpl/t/ndb_rpl_conflict_epoch2.test
--echo Testing NDB$EPOCH2 algorithm
--echo NDB$EPOCH2 is almost the same as NDB$EPOCH, except that:
--echo  - The Primary / Secondary roles are controlled by a server variable
--echo  - Secondary I/U/D ops are 'reflected' back to the Secondary to handle
--echo    the delete vs delete limitations of NDB$EPOCH
--echo
--echo  This testcase provides some regression coverage w.r.t. NDB$EPOCH, by
--echo  running many of the same tests on NDB$EPOCH2, but also switching
--echo  the cluster roles.
--echo  The main result differences w.r.t ndb_rpl_conflict_epoch.result are :
--echo    - Result file has 2 passes for different roles
--echo    - Master and Local server ids swapped in second run
--echo    - Delete-Delete-Insert (case 8) shows no divergence
--echo 

--echo Prior to including the generic NDB$EPOCH test files, we setup the
--echo conflict role variables

#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 $CONFLICT_ALG=NDB\$EPOCH2;
let $SECONDARY_CONFLICT_ALG=\"NDB\$EPOCH2()\";

--source suite/ndb_rpl/t/ndb_rpl_conflict_epoch.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.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";


Youez - 2016 - github.com/yon3zu
LinuXploit