mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
WL#3754, circular replication tests
BitKeeper/deleted/.del-rpl_ndb_circular_2ch-master.opt: Delete: mysql-test/suite/rpl_ndb/t/rpl_ndb_circular_2ch-master.opt BitKeeper/deleted/.del-rpl_ndb_circular_2ch-slave.opt: Delete: mysql-test/suite/rpl_ndb/t/rpl_ndb_circular_2ch-slave.opt BitKeeper/deleted/.del-rpl_circular_for_4_hosts-master.opt: Delete: mysql-test/suite/rpl/t/rpl_circular_for_4_hosts-master.opt BitKeeper/deleted/.del-rpl_circular_for_4_hosts-slave.opt: Delete: mysql-test/suite/rpl/t/rpl_circular_for_4_hosts-slave.opt mysql-test/include/circular_rpl_for_4_hosts_init.inc: initialization primitive mysql-test/suite/rpl/r/rpl_circular_for_4_hosts.result: result file mysql-test/suite/rpl_ndb/t/rpl_ndb_circular_2ch.test: result file mysql-test/suite/rpl/t/rpl_circular_for_4_hosts.cnf: config file for test mysql-test/suite/rpl_ndb/t/rpl_ndb_circular_2ch.cnf: config file for test
This commit is contained in:
parent
994e9d6362
commit
dda1dbbbd8
9 changed files with 66 additions and 9 deletions
|
@ -18,7 +18,7 @@
|
|||
--source include/master-slave.inc
|
||||
|
||||
#
|
||||
# Set up circular ring by schema A->B->C-D->A
|
||||
# Set up circular ring by schema A->B->C->D->A
|
||||
#
|
||||
|
||||
--connection slave
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
*** Set up circular ring by schema A->B->C-D->A ***
|
||||
*** Set up circular ring by schema A->B->C->D->A ***
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
--slave-num=3 --log-slave-updates --innodb
|
|
@ -1 +0,0 @@
|
|||
--log-slave-updates --innodb
|
27
mysql-test/suite/rpl/t/rpl_circular_for_4_hosts.cnf
Normal file
27
mysql-test/suite/rpl/t/rpl_circular_for_4_hosts.cnf
Normal file
|
@ -0,0 +1,27 @@
|
|||
!include ../my.cnf
|
||||
|
||||
[mysqld.1]
|
||||
log-slave-updates
|
||||
innodb
|
||||
|
||||
[mysqld.2]
|
||||
log-slave-updates
|
||||
innodb
|
||||
|
||||
[mysqld.3]
|
||||
log-slave-updates
|
||||
innodb
|
||||
|
||||
[mysqld.4]
|
||||
log-slave-updates
|
||||
innodb
|
||||
|
||||
[ENV]
|
||||
SLAVE_MYPORT1= @mysqld.3.port
|
||||
SLAVE_MYSOCK1= @mysqld.3.socket
|
||||
|
||||
SLAVE_MYPORT2= @mysqld.4.port
|
||||
SLAVE_MYSOCK2= @mysqld.4.socket
|
||||
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
--slave-num=2 --server-id=1 --log-bin -log-slave-updates
|
|
@ -1 +0,0 @@
|
|||
--server-id=2 --log-bin --log-slave-updates --skip-slave-start
|
35
mysql-test/suite/rpl_ndb/t/rpl_ndb_circular_2ch.cnf
Normal file
35
mysql-test/suite/rpl_ndb/t/rpl_ndb_circular_2ch.cnf
Normal file
|
@ -0,0 +1,35 @@
|
|||
!include ../my.cnf
|
||||
|
||||
[mysqld.1.1]
|
||||
server-id= 1
|
||||
log-bin
|
||||
log-slave-updates
|
||||
|
||||
[mysqld.2.1]
|
||||
server-id= 1
|
||||
log-bin
|
||||
log-slave-updates
|
||||
|
||||
[mysqld.1.slave]
|
||||
server-id= 2
|
||||
log-bin
|
||||
log-slave-updates
|
||||
skip-slave-start
|
||||
|
||||
[mysqld.2.slave]
|
||||
server-id= 2
|
||||
master-host= 127.0.0.1
|
||||
master-port= @mysqld.2.1.port
|
||||
master-password= @mysqld.2.1.#password
|
||||
master-user= @mysqld.2.1.#user
|
||||
master-connect-retry= 1
|
||||
init-rpl-role= slave
|
||||
log-bin
|
||||
log-slave-updates
|
||||
skip-slave-start
|
||||
ndb_connectstring= @mysql_cluster.slave.ndb_connectstring
|
||||
|
||||
[ENV]
|
||||
|
||||
SLAVE_MYPORT1= @mysqld.2.slave.port
|
||||
SLAVE_MYSOCK1= @mysqld.2.slave.socket
|
|
@ -170,10 +170,9 @@ SELECT COUNT(*), SUM(a), b FROM t1 WHERE c = 3 GROUP BY b ORDER BY b;
|
|||
|
||||
# Clean up
|
||||
--connection master
|
||||
DELETE FROM t1;
|
||||
DROP TABLE t1;
|
||||
--connection slave
|
||||
let $wait_condition= SELECT COUNT(*)=0 FROM t1;
|
||||
--source include/wait_condition.inc
|
||||
DROP TABLE t1;
|
||||
--echo
|
||||
|
||||
# End of test 5.1
|
||||
|
|
Loading…
Reference in a new issue