Debian Codegraph @

mysql-test/suite/innodb/r/alter_kill.result

raw
1 SELECT @@innodb_doublewrite;
2 @@innodb_doublewrite
3 OFF
4 SET GLOBAL innodb_doublewrite=fast;
5 #
6 # Bug#16720368 INNODB CRASHES ON BROKEN #SQL*.IBD FILE AT STARTUP
7 #
8 SET GLOBAL innodb_stats_persistent=0;
9 CREATE TABLE bug16720368_1 (a INT PRIMARY KEY) ENGINE=InnoDB;
10 connect con1,localhost,root;
11 CREATE TABLE bug16720368 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB;
12 INSERT INTO bug16720368 (a) VALUES (1),(2),(3),(4),(5),(6),(7),(8);
13 InnoDB 0 transactions not purged
14 connection default;
15 # Cleanly shutdown mysqld
16 disconnect con1;
17 # Corrupt FIL_PAGE_TYPE in bug16720368.ibd,
18 # and recompute innodb_checksum_algorithm=crc32
19 # restart: --innodb-flush-method=O_DIRECT
20 SELECT @@innodb_doublewrite;
21 @@innodb_doublewrite
22 OFF
23 SELECT COUNT(*) FROM bug16720368;
24 ERROR HY000: Table `test`.`bug16720368` is corrupted. Please drop the table and recreate.
25 INSERT INTO bug16720368 VALUES(1);
26 ERROR HY000: Table `test`.`bug16720368` is corrupted. Please drop the table and recreate.
27 INSERT INTO bug16720368_1 VALUES(1);
28 # Shut down the server to uncorrupt the data.
29 # restart
30 INSERT INTO bug16720368 VALUES(9,1);
31 SELECT COUNT(*) FROM bug16720368;
32 COUNT(*)
33 9
34 DROP TABLE bug16720368, bug16720368_1;
35 #
36 # Bug#16735660 ASSERT TABLE2 == NULL, ROLLBACK OF RESURRECTED TXNS,
37 # DICT_TABLE_ADD_TO_CACHE
38 #
39 CREATE TEMPORARY TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
40 BEGIN;
41 INSERT INTO t1 VALUES(42);
42 connect con1,localhost,root;
43 CREATE TABLE bug16735660 (a INT PRIMARY KEY) ENGINE=InnoDB;
44 SET GLOBAL innodb_max_purge_lag_wait=2;
45 SET GLOBAL innodb_max_dirty_pages_pct_lwm=0.0;
46 SET GLOBAL innodb_max_dirty_pages_pct=0.0;
47 SET GLOBAL innodb_max_dirty_pages_pct=90.0;
48 XA START 'x';
49 INSERT INTO bug16735660 VALUES(1),(2),(3);
50 XA END 'x';
51 XA PREPARE 'x';
52 connection default;
53 # Kill the server
54 disconnect con1;
55 # Attempt to start without an *.ibd file.
56 # restart
57 FOUND 1 /\[ERROR\] InnoDB: Tablespace [0-9]+ was not found at .*test.bug16735660.ibd/ in mysqld.1.err
58 # restart
59 SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
60 SELECT * FROM bug16735660;
61 a
62 1
63 2
64 3
65 XA RECOVER;
66 formatID gtrid_length bqual_length data
67 1 1 0 x
68 XA ROLLBACK 'x';
69 SELECT * FROM bug16735660;
70 a
71 DROP TABLE bug16735660;