Commit 9afbb106 authored by Jan Lindström's avatar Jan Lindström

Add wait_condition to stabilize.

parent 2b5f4b3e
...@@ -13,26 +13,26 @@ connection node_2; ...@@ -13,26 +13,26 @@ connection node_2;
COMMIT; COMMIT;
connection node_2b; connection node_2b;
SET SESSION wsrep_sync_wait = 0; SET SESSION wsrep_sync_wait = 0;
SELECT COUNT(*) = 0 FROM t1; SELECT COUNT(*) AS EXPECT_0 FROM t1;
COUNT(*) = 0 EXPECT_0
1 0
connection node_1; connection node_1;
SET SESSION wsrep_sync_wait = 0; SET SESSION wsrep_sync_wait = 0;
SET SESSION wsrep_trx_fragment_size = 1; SET SESSION wsrep_trx_fragment_size = 1;
SELECT COUNT(*) = 1 FROM t1; SELECT COUNT(*) AS EXPECT_1 FROM t1;
COUNT(*) = 1 EXPECT_1
1 1
REPLACE INTO t1 VALUES (1,'y'); REPLACE INTO t1 VALUES (1,'y');
connection node_2b; connection node_2b;
SELECT COUNT(*) = 0 FROM t1; SELECT COUNT(*) AS EXPECT_0 FROM t1;
COUNT(*) = 0 EXPECT_0
1 0
connection node_2a; connection node_2a;
SET GLOBAL wsrep_provider_options = 'signal=before_local_commit_monitor_enter'; SET GLOBAL wsrep_provider_options = 'signal=before_local_commit_monitor_enter';
SET GLOBAL wsrep_provider_options = 'dbug='; SET GLOBAL wsrep_provider_options = 'dbug=';
connection node_2; connection node_2;
SELECT COUNT(*) = 1 FROM t1; SELECT COUNT(*) AS EXPECT_1 FROM t1;
COUNT(*) = 1 EXPECT_1
1 1
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(255)) ENGINE=InnoDB; CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(255)) ENGINE=InnoDB;
...@@ -46,25 +46,25 @@ connection node_2; ...@@ -46,25 +46,25 @@ connection node_2;
COMMIT; COMMIT;
connection node_2b; connection node_2b;
SET SESSION wsrep_sync_wait = 0; SET SESSION wsrep_sync_wait = 0;
SELECT COUNT(*) = 0 FROM t1; SELECT COUNT(*) AS EXPECT_0 FROM t1;
COUNT(*) = 0 EXPECT_0
1 0
connection node_1; connection node_1;
SET SESSION wsrep_sync_wait = 0; SET SESSION wsrep_sync_wait = 0;
SET SESSION wsrep_trx_fragment_size = 1; SET SESSION wsrep_trx_fragment_size = 1;
SELECT COUNT(*) = 1 FROM t1; SELECT COUNT(*) AS EXPECT_1 FROM t1;
COUNT(*) = 1 EXPECT_1
1 1
REPLACE INTO t1 VALUES (1,'y'); REPLACE INTO t1 VALUES (1,'y');
connection node_2b; connection node_2b;
SELECT COUNT(*) = 0 FROM t1; SELECT COUNT(*) AS EXPECT_0 FROM t1;
COUNT(*) = 0 EXPECT_0
1 0
connection node_2a; connection node_2a;
SET GLOBAL wsrep_provider_options = 'signal=before_certify_apply_monitor_enter'; SET GLOBAL wsrep_provider_options = 'signal=before_certify_apply_monitor_enter';
SET GLOBAL wsrep_provider_options = 'dbug='; SET GLOBAL wsrep_provider_options = 'dbug=';
connection node_2; connection node_2;
SELECT COUNT(*) = 1 FROM t1; SELECT COUNT(*) AS EXPECT_1 FROM t1;
COUNT(*) = 1 EXPECT_1
1 1
DROP TABLE t1; DROP TABLE t1;
...@@ -14,16 +14,16 @@ INSERT INTO t1 VALUES (1, 'x'); ...@@ -14,16 +14,16 @@ INSERT INTO t1 VALUES (1, 'x');
--connection node_2b --connection node_2b
--sleep 1 --sleep 1
SET SESSION wsrep_sync_wait = 0; SET SESSION wsrep_sync_wait = 0;
SELECT COUNT(*) = 0 FROM t1; SELECT COUNT(*) AS EXPECT_0 FROM t1;
--connection node_1 --connection node_1
SET SESSION wsrep_sync_wait = 0; SET SESSION wsrep_sync_wait = 0;
SET SESSION wsrep_trx_fragment_size = 1; SET SESSION wsrep_trx_fragment_size = 1;
SELECT COUNT(*) = 1 FROM t1; SELECT COUNT(*) AS EXPECT_1 FROM t1;
REPLACE INTO t1 VALUES (1,'y'); REPLACE INTO t1 VALUES (1,'y');
--connection node_2b --connection node_2b
SELECT COUNT(*) = 0 FROM t1; SELECT COUNT(*) AS EXPECT_0 FROM t1;
--connection node_2a --connection node_2a
--source include/galera_signal_sync_point.inc --source include/galera_signal_sync_point.inc
...@@ -31,6 +31,8 @@ SELECT COUNT(*) = 0 FROM t1; ...@@ -31,6 +31,8 @@ SELECT COUNT(*) = 0 FROM t1;
--connection node_2 --connection node_2
--reap --reap
SELECT COUNT(*) = 1 FROM t1; --let $wait_condition = SELECT COUNT(*) = 1 FROM t1;
--source include/wait_condition.inc
SELECT COUNT(*) AS EXPECT_1 FROM t1;
DROP TABLE t1; DROP TABLE t1;
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