MDEV-21557 : galera_bf_abort_at_after_statement MTR failed: query 'reap' succeeded - should have failed with errno 1213
Add wait_condition so that conflicting update is done.
This commit is contained in:
parent
836a352b86
commit
9c29a444c5
@ -12,6 +12,8 @@ connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
|
||||
SET DEBUG_SYNC = 'now WAIT_FOR blocked';
|
||||
connection node_1;
|
||||
UPDATE t1 SET val=3 WHERE id=1;
|
||||
connect node_2b, 127.0.0.1, root, , test, $NODE_MYPORT_2;
|
||||
set session wsrep_sync_wait=0;
|
||||
connection node_2a;
|
||||
SET DEBUG_SYNC = 'now SIGNAL continue';
|
||||
connection node_2;
|
||||
@ -21,3 +23,5 @@ SET DEBUG_SYNC = 'RESET';
|
||||
connection node_1;
|
||||
SET DEBUG_SYNC = 'RESET';
|
||||
DROP TABLE t1;
|
||||
disconnect node_2a;
|
||||
disconnect node_2b;
|
||||
|
@ -34,6 +34,11 @@ SET DEBUG_SYNC = 'now WAIT_FOR blocked';
|
||||
# cause BF abort on other node
|
||||
UPDATE t1 SET val=3 WHERE id=1;
|
||||
|
||||
--connect node_2b, 127.0.0.1, root, , test, $NODE_MYPORT_2
|
||||
set session wsrep_sync_wait=0;
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM t1 where id = 1 and val = 3
|
||||
--source include/wait_condition.inc
|
||||
|
||||
--connection node_2a
|
||||
SET DEBUG_SYNC = 'now SIGNAL continue';
|
||||
|
||||
@ -47,3 +52,7 @@ SET DEBUG_SYNC = 'RESET';
|
||||
--connection node_1
|
||||
SET DEBUG_SYNC = 'RESET';
|
||||
DROP TABLE t1;
|
||||
|
||||
--disconnect node_2a
|
||||
--disconnect node_2b
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user