Skip to content

Commit

Permalink
delayed - add to stress test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuval-Ariel committed Dec 6, 2022
1 parent 527878f commit a8cc4bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions db_stress_tool/db_stress_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ DECLARE_int32(get_property_one_in);
DECLARE_string(file_checksum_impl);
DECLARE_int32(data_block_index_type);
DECLARE_double(data_block_hash_table_util_ratio);
DECLARE_bool(use_dynamic_delay);

#ifndef ROCKSDB_LITE
// Options for StackableDB-based BlobDB
Expand Down
3 changes: 3 additions & 0 deletions db_stress_tool/db_stress_gflags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1061,4 +1061,7 @@ DEFINE_uint64(stats_dump_period_sec,
ROCKSDB_NAMESPACE::Options().stats_dump_period_sec,
"Gap between printing stats to log in seconds");

DEFINE_bool(use_dynamic_delay, ROCKSDB_NAMESPACE::Options().use_dynamic_delay,
"Use dynamic delay");

#endif // GFLAGS
1 change: 1 addition & 0 deletions db_stress_tool/db_stress_test_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3123,6 +3123,7 @@ void InitializeOptionsFromFlags(
FLAGS_verify_sst_unique_id_in_manifest;
options.memtable_protection_bytes_per_key =
FLAGS_memtable_protection_bytes_per_key;
options.use_dynamic_delay = FLAGS_use_dynamic_delay;

// Integrated BlobDB
options.enable_blob_files = FLAGS_enable_blob_files;
Expand Down
1 change: 1 addition & 0 deletions tools/db_crashtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@
"customopspercent": 0,
"filter_uri": lambda: random.choice(["speedb.PairedBloomFilter", ""]),
"memtablerep": lambda: random.choice(["skip_list", "speedb.HashSpdRepFactory"]),
"use_dynamic_delay": lambda: random.choice([0, 1, 1, 1]),
}

_TEST_DIR_ENV_VAR = 'TEST_TMPDIR'
Expand Down

0 comments on commit a8cc4bb

Please sign in to comment.