make corruption_test:CompactionInputErrorParanoid deterministic

Summary:
it writes ~10M data, default L0 compaction trigger is 4, plus 2 writer
buffer, so that can accommodate ~6M data before compaction happens for
sure. I guess encoding is doing a good job to shrink the data so that
sometime, compaction does not get triggered. I get test failure quite
often.

Test Plan: ran it multiple times and all got pass

Reviewers: igor, sdong

Reviewed By: sdong

CC: leveldb

Differential Revision: https://reviews.facebook.net/D17775
This commit is contained in:
Lei Jin
2014-04-11 12:48:38 -07:00
parent 9433e359d1
commit eba3fc644a
2 changed files with 5 additions and 2 deletions

View File

@@ -257,6 +257,8 @@ struct ColumnFamilyOptions {
// Number of files to trigger level-0 compaction. A value <0 means that
// level-0 compaction will not be triggered by number of files at all.
//
// Default: 4
int level0_file_num_compaction_trigger;
// Soft limit on number of level-0 files. We start slowing down writes at this