Debian Codegraph @

mysql-test/suite/galera/t/MDEV-36116.test

raw
1 #
2 # MDEV-36116: TOI crashes in debug assert if executing thread is killed.
3 #
4
5 --source include/galera_cluster.inc
6 --source include/have_innodb.inc
7 --source include/have_debug_sync.inc
8 --source include/have_debug.inc
9
10 --connect con1,127.0.0.1,root,,test,$NODE_MYPORT_1
11
12 # Start TOI operation and wait for the thread to be killed.
13 --connection node_1
14 CALL mtr.add_suppression("CREATE TABLE isolation failure");
15
16 --let $connection_id = `SELECT CONNECTION_ID()`
17 SET DEBUG_SYNC = 'wsrep_kill_thd_before_enter_toi SIGNAL may_kill WAIT_FOR continue';
18 --send
19 CREATE TABLE t1 (a INT) ENGINE=InnoDB;
20
21 # Kill the thread and let it continue.
22 --connection con1
23 SET DEBUG_SYNC = 'now WAIT_FOR may_kill';
24 --disable_query_log
25 --eval KILL CONNECTION $connection_id
26 --enable_query_log
27 SET DEBUG_SYNC = 'now SIGNAL continue';
28
29 --connection node_1
30 --error 2013,2026
31 --reap
32
33 # Verify no tables created on either nodes.
34 --connection node_2
35 SHOW TABLES LIKE 't1';
36
37 --connection con1
38 SHOW TABLES LIKE 't1';
39
40 # Cleanup
41 SET DEBUG_SYNC = 'RESET';
42 --disconnect con1
43 --source include/galera_end.inc