Commit b80b5239 authored by Jan Lindström's avatar Jan Lindström

Test case cleanups.

parent ccc4eb85
...@@ -9,6 +9,7 @@ INSERT INTO t1 VALUES(1); ...@@ -9,6 +9,7 @@ INSERT INTO t1 VALUES(1);
SELECT LENGTH(@@global.gtid_binlog_state) > 1; SELECT LENGTH(@@global.gtid_binlog_state) > 1;
LENGTH(@@global.gtid_binlog_state) > 1 LENGTH(@@global.gtid_binlog_state) > 1
1 1
connection node_1;
connection node_2; connection node_2;
gtid_binlog_state_equal gtid_binlog_state_equal
1 1
......
...@@ -9,6 +9,7 @@ INSERT INTO t1 VALUES(1); ...@@ -9,6 +9,7 @@ INSERT INTO t1 VALUES(1);
SELECT LENGTH(@@global.gtid_binlog_state) > 1; SELECT LENGTH(@@global.gtid_binlog_state) > 1;
LENGTH(@@global.gtid_binlog_state) > 1 LENGTH(@@global.gtid_binlog_state) > 1
1 1
connection node_1;
connection node_2; connection node_2;
gtid_binlog_state_equal gtid_binlog_state_equal
1 1
......
...@@ -31,7 +31,6 @@ DROP TABLE t1; ...@@ -31,7 +31,6 @@ DROP TABLE t1;
connection node_1; connection node_1;
connection node_2; connection node_2;
connection node_3; connection node_3;
connection node_3;
RESET MASTER; RESET MASTER;
connection node_1; connection node_1;
STOP SLAVE; STOP SLAVE;
...@@ -43,3 +42,5 @@ connection node_2; ...@@ -43,3 +42,5 @@ connection node_2;
SET GLOBAL WSREP_ON=OFF; SET GLOBAL WSREP_ON=OFF;
reset master; reset master;
SET GLOBAL WSREP_ON=ON; SET GLOBAL WSREP_ON=ON;
connection node_3;
RESET MASTER;
...@@ -62,7 +62,8 @@ push @::global_suppressions, ...@@ -62,7 +62,8 @@ push @::global_suppressions,
qr(WSREP: Ignoring error*), qr(WSREP: Ignoring error*),
qr(WSREP: Failed to remove page file .*), qr(WSREP: Failed to remove page file .*),
qr(WSREP: wsrep_sst_method is set to 'mysqldump' yet mysqld bind_address is set to .*), qr(WSREP: wsrep_sst_method is set to 'mysqldump' yet mysqld bind_address is set to .*),
qr(WSREP: .*Transport endpoint is not connected.*), qr|WSREP: Sending JOIN failed: -107 \(Transport endpoint is not connected\). Will retry in new primary component.|,
qr|WSREP: Trying to continue unpaused monitor|,
); );
sub skip_combinations { sub skip_combinations {
......
...@@ -27,6 +27,13 @@ INSERT INTO t1 VALUES(1); ...@@ -27,6 +27,13 @@ INSERT INTO t1 VALUES(1);
SELECT LENGTH(@@global.gtid_binlog_state) > 1; SELECT LENGTH(@@global.gtid_binlog_state) > 1;
--let $gtid_binlog_state_node1 = `SELECT @@global.gtid_binlog_state;` --let $gtid_binlog_state_node1 = `SELECT @@global.gtid_binlog_state;`
--connection node_1
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';
--source include/wait_condition.inc
--let $wait_condition = SELECT COUNT(*) = 1 FROM t1;
--source include/wait_condition.inc
--connection node_2 --connection node_2
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1'; --let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';
--source include/wait_condition.inc --source include/wait_condition.inc
......
...@@ -59,6 +59,8 @@ SELECT COUNT(*) AS EXPECT_0 FROM t1; ...@@ -59,6 +59,8 @@ SELECT COUNT(*) AS EXPECT_0 FROM t1;
--connection node_3 --connection node_3
DROP TABLE t1; DROP TABLE t1;
--sleep 1
--connection node_1 --connection node_1
--let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1'; --let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';
--source include/wait_condition.inc --source include/wait_condition.inc
...@@ -70,8 +72,6 @@ DROP TABLE t1; ...@@ -70,8 +72,6 @@ DROP TABLE t1;
--connection node_3 --connection node_3
--let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1'; --let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';
--source include/wait_condition.inc --source include/wait_condition.inc
--connection node_3
RESET MASTER; RESET MASTER;
--connection node_1 --connection node_1
...@@ -85,3 +85,6 @@ SET GLOBAL WSREP_ON=ON; ...@@ -85,3 +85,6 @@ SET GLOBAL WSREP_ON=ON;
SET GLOBAL WSREP_ON=OFF; SET GLOBAL WSREP_ON=OFF;
reset master; reset master;
SET GLOBAL WSREP_ON=ON; SET GLOBAL WSREP_ON=ON;
--connection node_3
RESET MASTER;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment