|
| 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 |
1 | 7 | Checking direct reads
|
| 8 | +FOUND 1 /enable both use_direct_reads/ in use_direct_reads_writes.err |
2 | 9 | Checking direct writes
|
| 10 | +FOUND 1 /enable both use_direct_io_for_flush_and_compaction/ in use_direct_reads_writes.err |
3 | 11 | 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 |
4 | 13 | Validate flush_log settings when direct writes is enabled
|
5 | 14 | set global rocksdb_flush_log_at_trx_commit=0;
|
6 | 15 | set global rocksdb_flush_log_at_trx_commit=1;
|
7 | 16 | ERROR 42000: Variable 'rocksdb_flush_log_at_trx_commit' can't be set to the value of '1'
|
8 | 17 | set global rocksdb_flush_log_at_trx_commit=2;
|
9 | 18 | 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 |
0 commit comments