Enable partitioned index/filter in stress tests (#5918)

Summary:
This is the 3rd attempt after the revert of https://github.com/facebook/rocksdb/issues/4020 and https://github.com/facebook/rocksdb/issues/5895
The last bug is fixed https://github.com/facebook/rocksdb/pull/5907
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5918

Test Plan:
```
make -j32 crash_test
```

Differential Revision: D17909489

Pulled By: maysamyabandeh

fbshipit-source-id: 7dfb8cf998c2d295c86465dd21734593d277887e
main
Maysam Yabandeh 5 years ago committed by Facebook Github Bot
parent 6febfd8451
commit a6e615a7ba
  1. 13
      tools/db_crashtest.py

@ -41,8 +41,8 @@ default_params = {
"enable_pipelined_write": 0,
"expected_values_path": expected_values_file.name,
"flush_one_in": 1000000,
# Temporarily disable hash and partitioned index
"index_type": 0,
# Temporarily disable hash index
"index_type": lambda: random.choice([0,2]),
"max_background_compactions": 20,
"max_bytes_for_level_base": 10485760,
"max_key": 100000000,
@ -50,8 +50,7 @@ default_params = {
"mmap_read": lambda: random.randint(0, 1),
"nooverwritepercent": 1,
"open_files": lambda : random.choice([-1, 500000]),
# Temporarily disable partitioned filter
"partition_filters": 0,
"partition_filters": lambda: random.randint(0, 1),
"prefixpercent": 5,
"progress_reports": 0,
"readpercent": 45,
@ -179,8 +178,10 @@ def finalize_and_sanitize(src_params):
# now assertion failures are triggered.
dest_params["compaction_ttl"] = 0
if dest_params["partition_filters"] == 1:
dest_params["index_type"] = 2
dest_params["use_block_based_filter"] = 0
if dest_params["index_type"] != 2:
dest_params["partition_filters"] = 0
else:
dest_params["use_block_based_filter"] = 0
return dest_params

Loading…
Cancel
Save