mirror of https://github.com/facebook/rocksdb.git
Do not change compaction style for tiered_storage crash tests (#12609)
Summary:
tiered_storage crash tests are intended to run with universal compaction only: e2ef349f56/tools/db_crashtest.py (L562)
Update the test script to not change compaction style for tiered_storage crash tests.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/12609
Test Plan: `python3 tools/db_crashtest.py whitebox --test_tiered_storage --ops_per_thread=10 --max_key=100000 --duration=300 --reopen=1`
Reviewed By: ajkr
Differential Revision: D56917965
Pulled By: cbi42
fbshipit-source-id: 5ab693d7153832bae884788ff1f1762b8ec8262d
This commit is contained in:
parent
58627eff2e
commit
174b8294c8
|
@ -1109,13 +1109,13 @@ def whitebox_crash_main(args, unknown_args):
|
|||
}
|
||||
# Single level universal has a lot of special logic. Ensure we cover
|
||||
# it sometimes.
|
||||
if random.randint(0, 1) == 1:
|
||||
if not args.test_tiered_storage and random.randint(0, 1) == 1:
|
||||
additional_opts.update(
|
||||
{
|
||||
"num_levels": 1,
|
||||
}
|
||||
)
|
||||
elif check_mode == 2:
|
||||
elif check_mode == 2 and not args.test_tiered_storage:
|
||||
# normal run with FIFO compaction mode
|
||||
# ops_per_thread is divided by 5 because FIFO compaction
|
||||
# style is quite a bit slower on reads with lot of files
|
||||
|
|
Loading…
Reference in New Issue