diff options
author | Philip Stoev <philip.stoev@galeracluster.com> | 2015-08-12 01:03:21 -0700 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-09-09 22:53:32 -0400 |
commit | fd0aaad5479ee447aa7d0f5f71f23c26faf6cbc8 (patch) | |
tree | c65fda0687ff701b53155888837eeb6f3f604539 | |
parent | 997119dafefc1cf0d016d0b0da7989151d3e4f81 (diff) | |
download | mariadb-git-fd0aaad5479ee447aa7d0f5f71f23c26faf6cbc8.tar.gz |
Galera MTR Tests: Various test stability fixes (take #2)
6 files changed, 26 insertions, 13 deletions
diff --git a/mysql-test/suite/galera/r/galera_many_rows.result b/mysql-test/suite/galera/r/galera_many_rows.result index 43454ced993..a34367d6e46 100644 --- a/mysql-test/suite/galera/r/galera_many_rows.result +++ b/mysql-test/suite/galera/r/galera_many_rows.result @@ -4,6 +4,9 @@ CREATE TABLE ten (f1 INTEGER); INSERT INTO ten VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10); CREATE TABLE t1 (f1 INTEGER AUTO_INCREMENT PRIMARY KEY, f2 INTEGER) Engine=InnoDB; INSERT INTO t1 (f2) SELECT a1.f1 FROM ten AS a1, ten AS a2, ten AS a3, ten AS a4, ten AS a5; +SET SESSION wsrep_sync_wait = 0; +SET SESSION wsrep_sync_wait = 7; +SET GLOBAL wsrep_provider_options = 'repl.causal_read_timeout=PT1H'; SELECT COUNT(*) = 100000 FROM t1; COUNT(*) = 100000 1 @@ -12,7 +15,6 @@ SELECT COUNT(*) = 200000 FROM t1; COUNT(*) = 200000 1 UPDATE t1 SET f2 = 1; -SET GLOBAL wsrep_provider_options = 'repl.causal_read_timeout=PT5M'; SELECT COUNT(*) = 200000 FROM t1 WHERE f2 = 1; COUNT(*) = 200000 1 diff --git a/mysql-test/suite/galera/r/galera_parallel_simple.result b/mysql-test/suite/galera/r/galera_parallel_simple.result index 880d4e8ae3d..d6743780b2d 100644 --- a/mysql-test/suite/galera/r/galera_parallel_simple.result +++ b/mysql-test/suite/galera/r/galera_parallel_simple.result @@ -13,13 +13,16 @@ INSERT INTO t1 VALUES (1); INSERT INTO t2 VALUES (1); INSERT INTO t1 VALUES (1); INSERT INTO t2 VALUES (1); -SELECT COUNT(*) = 6 FROM t1; -COUNT(*) = 6 -1 -SELECT COUNT(*) = 6 FROM t2; -COUNT(*) = 6 -1 -SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE 'closing tables'; +SELECT COUNT(*) = 10 FROM t1; +COUNT(*) = 10 +0 +SELECT COUNT(*) = 10 FROM t2; +COUNT(*) = 10 +0 +SELECT COUNT(DISTINCT ID) FROM INFORMATION_SCHEMA.PROCESSLIST; +COUNT(DISTINCT ID) +4 +SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE 'committed%'; COUNT(*) = 2 1 SET GLOBAL wsrep_slave_threads = 1;; diff --git a/mysql-test/suite/galera/t/galera_gcs_fc_limit.test b/mysql-test/suite/galera/t/galera_gcs_fc_limit.test index 8b8299f0f03..fd77ec0a0eb 100644 --- a/mysql-test/suite/galera/t/galera_gcs_fc_limit.test +++ b/mysql-test/suite/galera/t/galera_gcs_fc_limit.test @@ -10,6 +10,7 @@ INSERT INTO t1 VALUES (1); --connection node_2 SELECT COUNT(*) = 1 FROM t1; +--sleep 1 --let $wsrep_provider_options_orig = `SELECT @@wsrep_provider_options` SET GLOBAL wsrep_provider_options = 'gcs.fc_limit=1'; diff --git a/mysql-test/suite/galera/t/galera_many_rows.test b/mysql-test/suite/galera/t/galera_many_rows.test index b2f931bec3a..653dc2dd75a 100644 --- a/mysql-test/suite/galera/t/galera_many_rows.test +++ b/mysql-test/suite/galera/t/galera_many_rows.test @@ -14,6 +14,12 @@ CREATE TABLE t1 (f1 INTEGER AUTO_INCREMENT PRIMARY KEY, f2 INTEGER) Engine=InnoD INSERT INTO t1 (f2) SELECT a1.f1 FROM ten AS a1, ten AS a2, ten AS a3, ten AS a4, ten AS a5; --connection node_2 +SET SESSION wsrep_sync_wait = 0; +--let $wsrep_provider_options_node2 = `SELECT @@wsrep_provider_options` +SET SESSION wsrep_sync_wait = 7; + +SET GLOBAL wsrep_provider_options = 'repl.causal_read_timeout=PT1H'; + SELECT COUNT(*) = 100000 FROM t1; INSERT INTO t1 (f2) SELECT a1.f1 FROM ten AS a1, ten AS a2, ten AS a3, ten AS a4, ten AS a5; @@ -22,8 +28,6 @@ SELECT COUNT(*) = 200000 FROM t1; UPDATE t1 SET f2 = 1; --connection node_2 ---let $wsrep_provider_options_node2 = `SELECT @@wsrep_provider_options` -SET GLOBAL wsrep_provider_options = 'repl.causal_read_timeout=PT5M'; SELECT COUNT(*) = 200000 FROM t1 WHERE f2 = 1; --connection node_1 diff --git a/mysql-test/suite/galera/t/galera_parallel_simple.test b/mysql-test/suite/galera/t/galera_parallel_simple.test index a1429954980..5b2fd6b3479 100644 --- a/mysql-test/suite/galera/t/galera_parallel_simple.test +++ b/mysql-test/suite/galera/t/galera_parallel_simple.test @@ -35,9 +35,11 @@ INSERT INTO t2 VALUES (1); --connection node_2 -SELECT COUNT(*) = 6 FROM t1; -SELECT COUNT(*) = 6 FROM t2; -SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE 'closing tables'; +SELECT COUNT(*) = 10 FROM t1; +SELECT COUNT(*) = 10 FROM t2; +SHOW PROCESSLIST; +SELECT COUNT(DISTINCT ID) FROM INFORMATION_SCHEMA.PROCESSLIST; +SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE 'committed%'; --eval SET GLOBAL wsrep_slave_threads = $wsrep_slave_threads_orig; diff --git a/mysql-test/suite/galera/t/galera_wan_restart_sst.test b/mysql-test/suite/galera/t/galera_wan_restart_sst.test index 6fd1d19ab9a..1406ba67386 100644 --- a/mysql-test/suite/galera/t/galera_wan_restart_sst.test +++ b/mysql-test/suite/galera/t/galera_wan_restart_sst.test @@ -92,6 +92,7 @@ INSERT INTO t1 VALUES (34); --sleep 5 --connection node_1 +--source include/wait_until_connected_again.inc INSERT INTO t1 VALUES (31); --connection node_2 |