summaryrefslogtreecommitdiffstats
path: root/storage/rocksdb/mysql-test/rocksdb_sys_vars/r/rocksdb_debug_manual_compaction_delay_basic.result
blob: 6c5db01533bf51c3101767533328a48cd67c79c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
CREATE TABLE valid_values (value varchar(255)) ENGINE=myisam;
INSERT INTO valid_values VALUES(2400);
INSERT INTO valid_values VALUES(100000);
CREATE TABLE invalid_values (value varchar(255)) ENGINE=myisam;
INSERT INTO invalid_values VALUES('\'aaa\'');
SET @start_global_value = @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY;
SELECT @start_global_value;
@start_global_value
0
'# Setting to valid values in global scope#'
"Trying to set variable @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY to 2400"
SET @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY   = 2400;
SELECT @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY;
@@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY
2400
"Setting the global scope variable back to default"
SET @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY = DEFAULT;
SELECT @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY;
@@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY
0
"Trying to set variable @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY to 100000"
SET @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY   = 100000;
SELECT @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY;
@@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY
100000
"Setting the global scope variable back to default"
SET @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY = DEFAULT;
SELECT @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY;
@@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY
0
"Trying to set variable @@session.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY to 444. It should fail because it is not session."
SET @@session.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY   = 444;
ERROR HY000: Variable 'rocksdb_debug_manual_compaction_delay' is a GLOBAL variable and should be set with SET GLOBAL
'# Testing with invalid values in global scope #'
"Trying to set variable @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY to 'aaa'"
SET @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY   = 'aaa';
Got one of the listed errors
SELECT @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY;
@@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY
0
SET @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY = @start_global_value;
SELECT @@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY;
@@global.ROCKSDB_DEBUG_MANUAL_COMPACTION_DELAY
0
DROP TABLE valid_values;
DROP TABLE invalid_values;