Run FIFO compaction as part of db_crashtest2.py

Summary: As title

Test Plan: ran it

Reviewers: dhruba

Reviewed By: dhruba

Differential Revision: https://reviews.facebook.net/D18783
main
Igor Canadi 10 years ago
parent 1fd4654de5
commit 3a1cf1281b
  1. 10
      tools/db_crashtest2.py

@ -60,7 +60,7 @@ def main(argv):
+ str(ops_per_thread) + "\nwrite_buffer_size=" \
+ str(write_buf_size) + "\n"
total_check_mode = 3
total_check_mode = 4
check_mode = 0
while time.time() < exit_time:
@ -75,8 +75,14 @@ def main(argv):
# normal run with universal compaction mode
additional_opts = "--ops_per_thread=" + str(ops_per_thread) + \
" --compaction_style=1"
elif check_mode == 2:
# 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
additional_opts = "--ops_per_thread=" + str(ops_per_thread / 5) + \
" --compaction_style=2"
else:
# nomral run
# normal run
additional_opts = "--ops_per_thread=" + str(ops_per_thread)
dbname = tempfile.mkdtemp(prefix='rocksdb_crashtest_')

Loading…
Cancel
Save