Skip to content

Commit e1efeaa

Browse files
author
Jan Lindström
committed
MDEV-12628: innodb.innodb_bug14147491 sporadically fails in buildbot due to wrong error number
Actual error number returned from the query depends what point corrupted page is accessed, is it accessed when we read one of the pages for result set or is it accessed during background page read.
1 parent 57e6673 commit e1efeaa

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

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

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,12 @@ INSERT INTO t1 (b) VALUES ('corrupt me');
99
# Corrupt the table
1010
Munged a string.
1111
Munged a string.
12-
# The below SELECT query will return that table is not
13-
# in engine because table is corrupted
12+
# Now t1 is corrupted but we should not crash
1413
SELECT * FROM t1;
15-
ERROR 42S02: Table 'test.t1' doesn't exist in engine
14+
Got one of the listed errors
1615
INSERT INTO t1(b) VALUES('abcdef');
17-
ERROR 42S02: Table 'test.t1' doesn't exist in engine
16+
Got one of the listed errors
1817
UPDATE t1 set b = 'deadbeef' where a = 1;
19-
ERROR 42S02: Table 'test.t1' doesn't exist in engine
20-
CHECK TABLE t1;
21-
Table Op Msg_type Msg_text
22-
test.t1 check Error Table 'test.t1' doesn't exist in engine
23-
test.t1 check status Operation failed
24-
# Cleanup
18+
Got one of the listed errors
19+
# Cleanup, this must be possible
2520
DROP TABLE t1;

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,16 @@ EOF
6565

6666
--source include/start_mysqld.inc
6767

68-
--echo # The below SELECT query will return that table is not
69-
--echo # in engine because table is corrupted
70-
--error 1932
68+
--echo # Now t1 is corrupted but we should not crash
69+
70+
--error 1712,1932
7171
SELECT * FROM t1;
7272

73-
--error 1932
73+
--error 1034,1712,1932
7474
INSERT INTO t1(b) VALUES('abcdef');
7575

76-
--error 1932
76+
--error 1712,1932
7777
UPDATE t1 set b = 'deadbeef' where a = 1;
7878

79-
CHECK TABLE t1;
80-
81-
--echo # Cleanup
79+
--echo # Cleanup, this must be possible
8280
DROP TABLE t1;

0 commit comments

Comments
 (0)