From 68d949b3e32b73478ce5835645ed071e60b90f4c Mon Sep 17 00:00:00 2001 From: Andrew Kryczka Date: Tue, 18 Dec 2018 13:30:56 -0800 Subject: [PATCH] Enable DeleteRange in stress/crash tests (#4483) Summary: Set `delrangepercent=1` when `test_batches_snapshots=false`. Pull Request resolved: https://github.com/facebook/rocksdb/pull/4483 Differential Revision: D10324361 Pulled By: ajkr fbshipit-source-id: 0cde1f1504f9493408a0c6493b976d7e5f5b2d23 --- tools/db_crashtest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/db_crashtest.py b/tools/db_crashtest.py index 3912b1d7e..c41424eef 100644 --- a/tools/db_crashtest.py +++ b/tools/db_crashtest.py @@ -31,7 +31,8 @@ default_params = { "clear_column_family_one_in": 0, "compact_files_one_in": 1000000, "compact_range_one_in": 1000000, - "delpercent": 5, + "delpercent": 4, + "delrangepercent": 1, "destroy_db_initially": 0, "enable_pipelined_write": lambda: random.randint(0, 1), "expected_values_path": expected_values_file.name, @@ -147,6 +148,9 @@ def finalize_and_sanitize(src_params): dest_params["db"]): dest_params["use_direct_io_for_flush_and_compaction"] = 0 dest_params["use_direct_reads"] = 0 + if dest_params.get("test_batches_snapshots") == 1: + dest_params["delpercent"] += dest_params["delrangepercent"] + dest_params["delrangepercent"] = 0 return dest_params