From e1b176d27462145b10d7ba6cbe0964ff72ad51a3 Mon Sep 17 00:00:00 2001 From: gitbw95 <95719937+gitbw95@users.noreply.github.com> Date: Mon, 1 Aug 2022 11:01:03 -0700 Subject: [PATCH] Add CompressedSecondaryCache into stress test (#10442) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: The secondary cache is randomly disabled or enabled with CompressedSecondaryCache. Pull Request resolved: https://github.com/facebook/rocksdb/pull/10442 Test Plan: - To test that the CompressedSecondaryCache is used and the stress test runs successfully, run `make -j24 CRASH_TEST_EXT_ARGS=—duration=960 blackbox_crash_test ` Reviewed By: anand1976 Differential Revision: D38290796 Pulled By: gitbw95 fbshipit-source-id: bb7027b39e0ed9c0c62835abe09e759898130ec8 --- tools/db_crashtest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/db_crashtest.py b/tools/db_crashtest.py index 6edcc429a..3c11bddb4 100644 --- a/tools/db_crashtest.py +++ b/tools/db_crashtest.py @@ -179,7 +179,8 @@ default_params = { "async_io": lambda: random.choice([0, 1]), "wal_compression": lambda: random.choice(["none", "zstd"]), "verify_sst_unique_id_in_manifest": 1, # always do unique_id verification - "secondary_cache_uri": "", + "secondary_cache_uri": lambda: random.choice( + ["", "compressed_secondary_cache://capacity=8388608"]), "allow_data_in_errors": True, }