Debian Codegraph @

mysql-test/suite/ndb/t/ndb_bug17719439.test

raw
1 ###########################################################################################
2 # Testing Bug#17719439 THREAD INTERLEAVING IN NDB::INIT CAN CAUSE CRASH AT SIGNAL RECEPTION
3 ###########################################################################################
4
5 -- source include/have_ndb.inc
6 # We are using some debug-only features in this test
7 --source include/have_debug.inc
8
9 --disable_warnings
10 DROP TABLE IF EXISTS t1;
11 --enable_warnings
12
13 #
14 # Setup
15 #
16
17 connect (con1,localhost,root,,test);
18 connect (con2,localhost,root,,test);
19
20 connection con1;
21 create table t1( pk1 INT NOT NULL PRIMARY KEY,
22 attr1 INT NOT NULL,
23 attr2 INT,
24 attr3 VARCHAR(1024)
25 ) ENGINE = ndb;
26 connection con2;
27 set @save_debug = @@session.debug;
28 --echo # Error injection in Ndb::init
29 SET SESSION debug="+d,sleep_in_ndbinit";
30 --send INSERT INTO t1 VALUES (9410, 9412, NULL, '9412');
31 connection con1;
32 --echo # Restarting one node
33 --exec $NDB_MGM -e "1 restart -a" >> $NDB_TOOLS_OUTPUT
34 --exec $NDB_WAITER
35 connection con2;
36 --reap
37 SET SESSION debug=@save_debug;
38 select * from t1 order by pk1;
39
40 connection con1;
41
42 drop table t1;
43 --remove_file $NDB_TOOLS_OUTPUT