Debian Codegraph @

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

raw
1 --source include/galera_cluster.inc
2 --source include/have_debug.inc
3 --source include/have_debug_sync.inc
4
5 CREATE TABLE t1(id int not null primary key, b int) engine=InnoDB;
6 INSERT INTO t1 VALUES (0,0),(1,1),(2,2),(3,3);
7
8 BEGIN;
9 SET DEBUG_SYNC = 'wsrep_after_statement_enter SIGNAL blocked';
10 --send UPDATE t1 set b = 100 where id between 1 and 2;
11
12 --connect node_1b, 127.0.0.1, root, , test, $NODE_MYPORT_1
13
14 SET DEBUG_SYNC = 'now WAIT_FOR blocked';
15 SET DEBUG_SYNC = 'wsrep_after_statement_enter CLEAR';
16
17 --connection node_1b
18 SET @save_dbug = @@SESSION.debug_dbug;
19 SET @@SESSION.innodb_lock_wait_timeout=2;
20 SET @@SESSION.debug_dbug = '+d,wsrep_instrument_BF_lock_wait';
21 --error ER_LOCK_WAIT_TIMEOUT
22 UPDATE t1 set b = 200 WHERE id = 1;
23 SET @@SESSION.debug_dbug = @save_dbug;
24
25 --connection node_1
26 --reap
27 COMMIT;
28 SELECT * FROM t1;
29 SET DEBUG_SYNC = 'RESET';
30 --disconnect node_1b
31 DROP TABLE t1;