Debian Codegraph @

mysql-test/suite/innodb/t/ddl_crash_alter_table.test

raw
1 --source include/big_test.inc
2 --source include/have_debug.inc
3 --source include/not_valgrind.inc
4 --source include/not_crashrep.inc
5 --disable_query_log
6 CALL mtr.add_suppression("\\[ERROR\\].*Could not find a valid tablespace file for");
7 CALL mtr.add_suppression("\\[ERROR\\].*MLOG_FILE_RENAME: Invalid to file name.* File name in the redo log is ''");
8 --enable_query_log
9
10 LET $innodb_ddl_log_crash_reset_debug_orig = `SELECT @@innodb_ddl_log_crash_reset_debug`;
11
12 let $table_name= t1;
13
14 let $create_statement= CREATE TABLE $table_name
15 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b VARCHAR(100), c INT NOT NULL);
16
17 let $insert_statement= INSERT INTO t1 VALUES (1, "Filler1", 1),
18 (2, "filler2", 2), (3, "FILLER3", 3), (4, "Filler4", 4), (5, "5", 5),
19 (6, "filler6", 6);
20
21
22 let $test_free= 1;
23 let $test_delete= 0;
24 let $test_rename= 0;
25 let $test_drop= 1;
26 let $crash_statement= ALTER TABLE $table_name ADD INDEX (b), ADD INDEX(c), ALGORITHM=INPLACE;
27 --source ../mysql-test/suite/innodb/include/ddl_crash_statement.inc
28
29 let $test_free= 1;
30 let $test_delete= 1;
31 let $test_rename= 1;
32 let $test_drop= 0;
33 let $crash_statement= ALTER TABLE $table_name ADD COLUMN d INT NOT NULL, ADD INDEX(b), ALGORITHM=INPLACE;
34 --source ../mysql-test/suite/innodb/include/ddl_crash_statement.inc
35
36
37 let $test_free= 1;
38 let $test_delete= 0;
39 let $test_rename= 0;
40 let $test_drop= 0;
41 let $create_statement= CREATE TABLE $table_name
42 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b VARCHAR(100), c INT NOT NULL, KEY(b), KEY(c));
43 let $crash_statement= ALTER TABLE $table_name DROP INDEX b, DROP INDEX c, ADD INDEX( c, b), ALGORITHM=INPLACE;
44 --source ../mysql-test/suite/innodb/include/ddl_crash_statement.inc
45
46
47 let $test_free= 1;
48 let $test_delete= 1;
49 let $test_rename= 1;
50 let $test_drop= 0;
51 let $create_statement= CREATE TABLE $table_name
52 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b VARCHAR(100), c INT NOT NULL);
53 let $crash_statement= ALTER TABLE $table_name ADD COLUMN d INT NOT NULL, ADD INDEX(b), ALGORITHM=COPY;
54 --source ../mysql-test/suite/innodb/include/ddl_crash_statement.inc
55
56
57 eval SET GLOBAL innodb_ddl_log_crash_reset_debug = $innodb_ddl_log_crash_reset_debug_orig;