diff --git a/tools/db_crashtest.py b/tools/db_crashtest.py index 1910e4fe8..559cef817 100644 --- a/tools/db_crashtest.py +++ b/tools/db_crashtest.py @@ -36,7 +36,7 @@ default_params = { "bloom_bits": lambda: random.choice([random.randint(0,19), random.lognormvariate(2.3, 1.3)]), "cache_index_and_filter_blocks": lambda: random.randint(0, 1), - "cache_size": 1048576, + "cache_size": 8388608, "checkpoint_one_in": 1000000, "compression_type": lambda: random.choice( ["none", "snappy", "zlib", "lz4", "lz4hc", "xpress", "zstd"]), @@ -134,7 +134,7 @@ default_params = { [0, 0, 0, 1024 * 1024, 8 * 1024 * 1024, 128 * 1024 * 1024]), "avoid_unnecessary_blocking_io" : random.randint(0, 1), "write_dbid_to_manifest" : random.randint(0, 1), - "avoid_flush_during_recovery" : random.choice( + "avoid_flush_during_recovery" : lambda: random.choice( [1 if t == 0 else 0 for t in range(0, 8)]), "max_write_batch_group_size_bytes" : lambda: random.choice( [16, 64, 1024 * 1024, 16 * 1024 * 1024]),