mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
Fix test failure on galera_as_slave_replay by adding wait_conditions
This commit is contained in:
parent
527be044d5
commit
74cb160992
2 changed files with 23 additions and 7 deletions
|
|
@ -84,11 +84,21 @@ SET GLOBAL wsrep_provider_options = 'dbug=';
|
||||||
SET GLOBAL wsrep_provider_options = 'signal=commit_monitor_enter_sync';
|
SET GLOBAL wsrep_provider_options = 'signal=commit_monitor_enter_sync';
|
||||||
SET DEBUG_SYNC = "RESET";
|
SET DEBUG_SYNC = "RESET";
|
||||||
connection node_2a;
|
connection node_2a;
|
||||||
set session wsrep_sync_wait=15;
|
|
||||||
SELECT COUNT(*) = 1 FROM test.t1 WHERE f2 = 'e';
|
|
||||||
COUNT(*) = 1
|
|
||||||
1
|
|
||||||
set session wsrep_sync_wait=0;
|
set session wsrep_sync_wait=0;
|
||||||
|
SELECT * from test.t1;
|
||||||
|
f1 f2
|
||||||
|
1 a
|
||||||
|
2 b
|
||||||
|
3 e
|
||||||
|
4 d
|
||||||
|
connection node_1;
|
||||||
|
SELECT * from test.t1;
|
||||||
|
f1 f2
|
||||||
|
1 a
|
||||||
|
2 b
|
||||||
|
3 e
|
||||||
|
4 d
|
||||||
|
connection node_2a;
|
||||||
STOP SLAVE;
|
STOP SLAVE;
|
||||||
RESET SLAVE;
|
RESET SLAVE;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
|
||||||
|
|
@ -185,11 +185,17 @@ SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
|
||||||
SET DEBUG_SYNC = "RESET";
|
SET DEBUG_SYNC = "RESET";
|
||||||
|
|
||||||
--connection node_2a
|
--connection node_2a
|
||||||
|
|
||||||
set session wsrep_sync_wait=15;
|
|
||||||
SELECT COUNT(*) = 1 FROM test.t1 WHERE f2 = 'e';
|
|
||||||
set session wsrep_sync_wait=0;
|
set session wsrep_sync_wait=0;
|
||||||
|
--let $wait_condition = SELECT COUNT(*) = 1 FROM test.t1 where f2 = 'e'
|
||||||
|
--source include/wait_condition.inc
|
||||||
|
SELECT * from test.t1;
|
||||||
|
|
||||||
|
--connection node_1
|
||||||
|
--let $wait_condition = SELECT COUNT(*) = 1 FROM test.t1 where f2 = 'e'
|
||||||
|
--source include/wait_condition.inc
|
||||||
|
SELECT * from test.t1;
|
||||||
|
|
||||||
|
--connection node_2a
|
||||||
STOP SLAVE;
|
STOP SLAVE;
|
||||||
RESET SLAVE;
|
RESET SLAVE;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue