Debian Codegraph @

mysql-test/suite/ndb_ddl/schema_dist_coord_abort.test

raw
1 --source include/have_debug.inc
2 # This test crashes MySQL Server on purpose.
3 --source include/not_valgrind.inc
4 --source include/not_crashrep.inc
5
6 # Connect to all
7 --source connect.inc
8
9 --echo #
10 --echo # Test coordinator abort of active schema operation
11 --echo #
12
13
14 --echo # Setup coordinator to restart when first schema op result is
15 --echo # received, this will trigger test of "abort active"
16 set GLOBAL debug="+d,ndb_schema_dist_coord_abort_active";
17
18 --echo # Do schema operation which will cause the coordinator to abort the
19 --echo # active schema operation
20 --replace_regex /Node [0-9]+:/Node <nodeid>/
21 CREATE TABLE t1(
22 a int primary key
23 ) engine = NDB;
24
25 # Remove debug setup
26 set GLOBAL debug="-d,ndb_schema_dist_coord_abort_active";
27
28 # Wait until ready again
29 --source include/ndb_not_readonly.inc
30
31 DROP TABLE t1;
32
33 --echo # Setup coordinator to restart when schema operation is received, this
34 --echo # will trigger test of "fail all schema ops"
35 set GLOBAL debug="+d,ndb_schema_dist_coord_fail_all";
36
37 --echo # Do schema operation which will cause the coordinator to abort the
38 --echo # schema operation(s)
39 --replace_regex /Node [0-9]+:/Node <nodeid>/
40 CREATE TABLE t1(
41 a int primary key
42 ) engine = NDB;
43
44 # Remove debug setup
45 set GLOBAL debug="-d,ndb_schema_dist_coord_fail_all";
46
47 # Wait until ready again
48 --source include/ndb_not_readonly.inc
49
50 DROP TABLE t1;