1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug#14147491 - INFINITE LOOP WHEN OPENING A CORRUPTED TABLE

This bug is fixed by Bug#14251529. Only testcase from the 
contribution is used.
This commit is contained in:
Satya Bodapati
2012-11-19 14:58:51 +05:30
parent c924d2acf5
commit 64dcbd6a49
3 changed files with 93 additions and 0 deletions

View File

@ -0,0 +1,17 @@
CALL mtr.add_suppression("InnoDB: Error: Unable to read tablespace .* page no .* into the buffer pool after 100 attempts");
CALL mtr.add_suppression("InnoDB: Warning: database page corruption or a failed");
# Create and populate the table to be corrupted
CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY, b TEXT) ENGINE=InnoDB;
INSERT INTO t1 (b) VALUES ('corrupt me');
INSERT INTO t1 (b) VALUES ('corrupt me');
# Restart server to flush buffers
# Corrupt the table
Munged a string.
Munged a string.
# Write file to make mysql-test-run.pl expect crash and restart
SELECT * FROM t1;
ERROR HY000: Lost connection to MySQL server during query
# Turn on reconnect
# Wait for server to fully start
# Cleanup
DROP TABLE t1;