Revision 0798a49a28b33907c62e2fc25afe319fad8992b6 authored by Yueh-Hsuan Chiang on 28 September 2015, 20:52:39 UTC, committed by Islam AbdelRahman on 30 September 2015, 18:15:35 UTC
Summary:
CompactionJobStatsTest.UniversalCompactionTest assumes compaction
kicks in when the number of L0 files equals to the compaction trigger.
However, in some case, the compaction might not catch up the write
speed and thus compaction might not kick in until the number of L0 files
is GREATER than the compaction trigger.

This patch tries to fix this corner case by making the Put thread wait
for a potential compaction whenever it flushes.

Test Plan: ./compaction_job_stats_test

Reviewers: sdong, anthony, IslamAbdelRahman, igor

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D47589
1 parent 555f3be
History
File Mode Size
dump
rdb
Dockerfile -rw-r--r-- 81 bytes
auto_sanity_test.sh -rwxr-xr-x 2.6 KB
benchmark.sh -rwxr-xr-x 11.5 KB
benchmark_leveldb.sh -rwxr-xr-x 5.1 KB
check_format_compatible.sh -rwxr-xr-x 3.4 KB
db_crashtest.py -rw-r--r-- 6.8 KB
db_crashtest2.py -rw-r--r-- 8.2 KB
db_repl_stress.cc -rw-r--r-- 4.5 KB
db_sanity_test.cc -rw-r--r-- 8.3 KB
db_stress.cc -rw-r--r-- 71.8 KB
dbench_monitor -rwxr-xr-x 2.6 KB
generate_random_db.sh -rwxr-xr-x 726 bytes
ldb.cc -rw-r--r-- 594 bytes
ldb_test.py -rw-r--r-- 20.0 KB
pflag -rwxr-xr-x 4.0 KB
reduce_levels_test.cc -rw-r--r-- 5.2 KB
rocksdb_dump_test.sh -rwxr-xr-x 273 bytes
run_flash_bench.sh -rwxr-xr-x 11.1 KB
run_leveldb.sh -rwxr-xr-x 6.2 KB
sample-dump.dmp -rw-r--r-- 100 bytes
sst_dump.cc -rw-r--r-- 603 bytes
verify_random_db.sh -rwxr-xr-x 710 bytes

back to top