Skip to content

Commit ce4149f

Browse files
committed
Post-merge fixes: make rocksdb.use_direct_reads_writes pass
1 parent 0fad97a commit ce4149f

File tree

2 files changed

+9
-27
lines changed

2 files changed

+9
-27
lines changed
Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,18 @@
1+
call mtr.add_suppression("rocksdb");
2+
call mtr.add_suppression("Aborting");
3+
# This shows that RocksDB plugin is loaded:
4+
select plugin_name, plugin_type from information_schema.plugins where plugin_name='RocksDB';
5+
plugin_name plugin_type
6+
ROCKSDB STORAGE ENGINE
17
Checking direct reads
8+
FOUND 1 /enable both use_direct_reads/ in use_direct_reads_writes.err
29
Checking direct writes
10+
FOUND 1 /enable both use_direct_io_for_flush_and_compaction/ in use_direct_reads_writes.err
311
Checking rocksdb_flush_log_at_trx_commit
12+
FOUND 1 /rocksdb_flush_log_at_trx_commit needs to be/ in use_direct_reads_writes.err
413
Validate flush_log settings when direct writes is enabled
514
set global rocksdb_flush_log_at_trx_commit=0;
615
set global rocksdb_flush_log_at_trx_commit=1;
716
ERROR 42000: Variable 'rocksdb_flush_log_at_trx_commit' can't be set to the value of '1'
817
set global rocksdb_flush_log_at_trx_commit=2;
918
ERROR 42000: Variable 'rocksdb_flush_log_at_trx_commit' can't be set to the value of '2'
10-
call mtr.add_suppression("rocksdb");
11-
call mtr.add_suppression("Aborting");
12-
# This shows that RocksDB plugin is loaded:
13-
select plugin_name, plugin_type from information_schema.plugins where plugin_name='RocksDB';
14-
plugin_name plugin_type
15-
ROCKSDB STORAGE ENGINE
16-
# Check that ROCKSDB plugin is not loaded:
17-
select plugin_name, plugin_type from information_schema.plugins where plugin_name='RocksDB';
18-
plugin_name plugin_type
19-
# Check that MyRocks has printed an error message into server error log:
20-
FOUND 1 /enable both use_direct_reads/ in mysqld.1.err
21-
# Now, restart the server back with regular settings
22-
select plugin_name, plugin_type from information_schema.plugins where plugin_name='RocksDB';
23-
plugin_name plugin_type
24-
ROCKSDB STORAGE ENGINE
25-
#
26-
# Now, repeat the same with another set of invalid arguments
27-
#
28-
# Check that ROCKSDB plugin is not loaded:
29-
select plugin_name, plugin_type from information_schema.plugins where plugin_name='RocksDB';
30-
plugin_name plugin_type
31-
FOUND 1 /enable both use_direct_io_for_flush_and_compaction/ in mysqld.1.err
32-
# Now, restart the server back with regular settings
33-
select plugin_name, plugin_type from information_schema.plugins where plugin_name='RocksDB';
34-
plugin_name plugin_type
35-
ROCKSDB STORAGE ENGINE

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ select plugin_name, plugin_type from information_schema.plugins where plugin_nam
3434
--source include/search_pattern_in_file.inc
3535
--remove_file $LOG
3636

37-
select plugin_name, plugin_type from information_schema.plugins where plugin_name='RocksDB';
3837

3938
# Verify invalid direct-writes and --rocksdb_flush_log_at_trx_commit combination at startup fails
4039
--echo Checking rocksdb_flush_log_at_trx_commit

0 commit comments

Comments
 (0)