Skip to content
Permalink
Browse files
MDEV-23608 : galera_sr.GCF-597 MTR failed: query 'ROLLBACK' succeeded…
… - should have failed with errno 1213

Added wait_condition to wait correct streaming state.
  • Loading branch information
Jan Lindström committed Sep 9, 2020
1 parent 44e7e1f commit cf9b3b2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
@@ -15,7 +15,13 @@ INSERT INTO t1 VALUES (2);
INSERT INTO t1 VALUES (3);
INSERT INTO t1 VALUES (4);
INSERT INTO t1 VALUES (5);
connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1;
connection node_1a;
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
connection node_2a;
connection node_2;
ROLLBACK;
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
DROP TABLE t1;
disconnect node_1a;
disconnect node_2a;
@@ -22,8 +22,21 @@ INSERT INTO t1 VALUES (3);
INSERT INTO t1 VALUES (4);
INSERT INTO t1 VALUES (5);

--connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1
--connection node_1a
--let $wait_condition = SELECT COUNT(*) = 5 FROM mysql.wsrep_streaming_log
--source include/wait_condition.inc

--connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2
--connection node_2a
--let $wait_condition = SELECT COUNT(*) = 5 FROM mysql.wsrep_streaming_log
--source include/wait_condition.inc

--connection node_2
--error ER_LOCK_DEADLOCK
ROLLBACK;

DROP TABLE t1;
DROP TABLE t1;

--disconnect node_1a
--disconnect node_2a

0 comments on commit cf9b3b2

Please sign in to comment.