Skip to content

Commit 206aba5

Browse files
committed
MyRocks: post-merge fixes part #8: make rocksdb.validate_datadic test pass
1 parent d4f3c5c commit 206aba5

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

storage/rocksdb/mysql-test/rocksdb/r/validate_datadic.result

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ call mtr.add_suppression('RocksDB: Schema mismatch');
22
CREATE TABLE t1 (pk int primary key) ENGINE=ROCKSDB;
33
CREATE TABLE t2 (pk int primary key) ENGINE=ROCKSDB PARTITION BY KEY(pk) PARTITIONS 4;
44
"Expect errors that we are missing two .frm files"
5-
FOUND 2 /Schema mismatch/ in mysqld.1.err
5+
FOUND 1 /RocksDB: Schema mismatch - Table test.t1 is registered in RocksDB but does not have a .frm file/ in validate_datadic.err
6+
FOUND 1 /RocksDB: Schema mismatch - Table test.t2 is registered in RocksDB but does not have a .frm file/ in validate_datadic.err
67
"Expect an error that we have an extra .frm file"
7-
FOUND 3 /Schema mismatch/ in mysqld.1.err
8+
FOUND 1 /Schema mismatch - A .frm file exists for table test.t1_dummy, but that table is not registered in RocksDB/ in validate_datadic.err
89
DROP TABLE t1, t2;

storage/rocksdb/mysql-test/rocksdb/t/validate_datadic.test

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,13 @@ shutdown_server 10;
5757

5858
# We should now have an error message
5959
--echo "Expect errors that we are missing two .frm files"
60-
--let SEARCH_FILE=$MYSQLTEST_VARDIR/log/mysqld.1.err
61-
--let SEARCH_PATTERN=Schema mismatch
60+
#--let SEARCH_FILE=$MYSQLTEST_VARDIR/log/mysqld.1.err
61+
#--let SEARCH_PATTERN=Schema mismatch
62+
#--source include/search_pattern_in_file.inc
63+
#--let SEARCH_PATTERN=RocksDB: Schema mismatch - Table test.t2 is registered in RocksDB but does not have a .frm file
64+
#--source include/search_pattern_in_file.inc
65+
--let SEARCH_FILE=$LOG
66+
--let SEARCH_PATTERN=RocksDB: Schema mismatch - Table test.t1 is registered in RocksDB but does not have a .frm file
6267
--source include/search_pattern_in_file.inc
6368
--let SEARCH_PATTERN=RocksDB: Schema mismatch - Table test.t2 is registered in RocksDB but does not have a .frm file
6469
--source include/search_pattern_in_file.inc

0 commit comments

Comments
 (0)