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

MDEV-21557 : galera_bf_abort_at_after_statement MTR failed: query 'reap'...

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.
parent 836a352b
......@@ -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
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