mirror of
https://github.com/MariaDB/server.git
synced 2025-11-25 17:25:02 +03:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
--disconnect node_1a
|
||||
--disconnect node_2a
|
||||
|
||||
Reference in New Issue
Block a user