Debian Codegraph @

mysql-test/suite/galera/t/mdev_21718.test

raw
1 #
2 # MDEV-21718 Reproduce a case where BF abort after
3 # client session acquires the ownership but before calls
4 # before_command() causes an assertion in wsrep-lib.
5 #
6 --source include/galera_cluster.inc
7 --source include/have_innodb.inc
8 --source include/have_debug.inc
9 --source include/have_debug_sync.inc
10
11 CREATE TABLE t1 (f1 INT PRIMARY KEY) ENGINE=InnoDB;
12
13 --let $galera_connection_name = node_1_ctrl
14 --let $galera_server_number = 1
15 --source include/galera_connect.inc
16
17 --connection node_1
18 START TRANSACTION;
19 INSERT INTO t1 VALUES (1);
20 SET DEBUG_SYNC = "wsrep_before_before_command SIGNAL reached WAIT_FOR continue";
21 --send COMMIT
22
23 --connection node_1_ctrl
24 SET DEBUG_SYNC = "now WAIT_FOR reached";
25
26 --connection node_2
27 INSERT INTO t1 VALUES (1);
28
29 # BF abort wakes up node_1 from sync wait.
30 --connection node_1
31 --error ER_LOCK_DEADLOCK
32 --reap
33
34 DROP TABLE t1;
35 SET DEBUG_SYNC = "RESET";