Skip to content

Commit d82dc63

Browse files
author
Mattias Jonsson
committed
merge. Disabled the added test in merge.test from 5.1.
2 parents f0ca244 + ea21b3a commit d82dc63

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed

mysql-test/r/merge.result

+5
Original file line numberDiff line numberDiff line change
@@ -2403,6 +2403,11 @@ REPAIR TABLE m1;
24032403
Table Op Msg_type Msg_text
24042404
test.m1 repair note The storage engine for the table doesn't support repair
24052405
DROP TABLE m1, t1;
2406+
#
2407+
# BUG#11763712 - 56458: KILLING A FLUSH TABLE FOR A MERGE/CHILD
2408+
# CRASHES SERVER
2409+
#
2410+
# Disabled in 5.5 by Mattias. TODO: FIX THIS!
24062411
End of 5.1 tests
24072412
#
24082413
# An additional test case for Bug#27430 Crash in subquery code

mysql-test/r/mysqlcheck.result

+1
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ DROP TABLE `@`;
206206
CREATE TABLE `я` (a INT) engine=myisam;
207207
SET NAMES DEFAULT;
208208
mysqlcheck --default-character-set="latin1" --databases test
209+
call mtr.add_suppression("Can't find file: '..test.@003f.frm'");
209210
test.?
210211
Error : Table doesn't exist
211212
status : Operation failed

mysql-test/t/merge.test

+53
Original file line numberDiff line numberDiff line change
@@ -1812,6 +1812,59 @@ REPAIR TABLE m1;
18121812
#
18131813
DROP TABLE m1, t1;
18141814

1815+
1816+
--echo #
1817+
--echo # BUG#11763712 - 56458: KILLING A FLUSH TABLE FOR A MERGE/CHILD
1818+
--echo # CRASHES SERVER
1819+
--echo #
1820+
--echo # Disabled in 5.5 by Mattias. TODO: FIX THIS!
1821+
if (0)
1822+
{
1823+
CREATE TABLE t1(a INT);
1824+
CREATE TABLE t2(a INT);
1825+
CREATE TABLE t3(a INT, b INT);
1826+
CREATE TABLE m1(a INT) ENGINE=MERGE UNION=(t1, t2);
1827+
1828+
--echo # Test reopen merge parent failure
1829+
LOCK TABLES m1 READ;
1830+
--echo # Remove 'm1' table using file operations.
1831+
remove_file $MYSQLD_DATADIR/test/m1.MRG;
1832+
remove_file $MYSQLD_DATADIR/test/m1.frm;
1833+
--error ER_NO_SUCH_TABLE
1834+
FLUSH TABLES;
1835+
UNLOCK TABLES;
1836+
CREATE TABLE m1(a INT) ENGINE=MERGE UNION=(t1, t2);
1837+
1838+
--echo # Test reopen merge child failure
1839+
LOCK TABLES m1 READ;
1840+
--echo # Remove 't1' table using file operations.
1841+
remove_file $MYSQLD_DATADIR/test/t1.frm;
1842+
remove_file $MYSQLD_DATADIR/test/t1.MYI;
1843+
remove_file $MYSQLD_DATADIR/test/t1.MYD;
1844+
--error ER_NO_SUCH_TABLE
1845+
FLUSH TABLES;
1846+
UNLOCK TABLES;
1847+
CREATE TABLE t1(a INT);
1848+
1849+
--echo # Test reattach merge failure
1850+
LOCK TABLES m1 READ;
1851+
--echo # Replace 't1' with 't3' table using file operations.
1852+
# move + remove is a work around for windows.
1853+
move_file $MYSQLD_DATADIR/test/t1.frm $MYSQLD_DATADIR/test/oldt1.frm;
1854+
move_file $MYSQLD_DATADIR/test/t1.MYI $MYSQLD_DATADIR/test/oldt1.MYI;
1855+
move_file $MYSQLD_DATADIR/test/t1.MYD $MYSQLD_DATADIR/test/oldt1.MYD;
1856+
remove_file $MYSQLD_DATADIR/test/oldt1.frm;
1857+
remove_file $MYSQLD_DATADIR/test/oldt1.MYI;
1858+
remove_file $MYSQLD_DATADIR/test/oldt1.MYD;
1859+
copy_file $MYSQLD_DATADIR/test/t3.frm $MYSQLD_DATADIR/test/t1.frm;
1860+
copy_file $MYSQLD_DATADIR/test/t3.MYI $MYSQLD_DATADIR/test/t1.MYI;
1861+
copy_file $MYSQLD_DATADIR/test/t3.MYD $MYSQLD_DATADIR/test/t1.MYD;
1862+
--error ER_CANT_REOPEN_TABLE
1863+
FLUSH TABLES;
1864+
UNLOCK TABLES;
1865+
DROP TABLE t1, t2, t3, m1;
1866+
}
1867+
18151868
--echo End of 5.1 tests
18161869

18171870
--echo #

mysql-test/t/mysqlcheck.test

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ CREATE TABLE `я` (a INT) engine=myisam;
146146
SET NAMES DEFAULT;
147147
--echo mysqlcheck --default-character-set="latin1" --databases test
148148
# Error returned depends on platform, replace it with "Table doesn't exist"
149+
call mtr.add_suppression("Can't find file: '..test.@003f.frm'");
149150
--replace_result "Can't find file: './test/@003f.frm' (errno: 22)" "Table doesn't exist" "Table 'test.?' doesn't exist" "Table doesn't exist"
150151
--exec $MYSQL_CHECK --default-character-set="latin1" --databases test
151152
--echo mysqlcheck --default-character-set="utf8" --databases test

0 commit comments

Comments
 (0)