From d1b26507bd97791437d870665277b55eb9e7ce95 Mon Sep 17 00:00:00 2001 From: Andrew Kryczka Date: Mon, 19 Mar 2018 12:12:41 -0700 Subject: [PATCH] fix db_compaction_test when compression disabled Summary: Previously, the compaction in `DBCompactionTestWithParam.ForceBottommostLevelCompaction` generated multiple files in no-compression use case, andone file in compression use case. I increased `target_file_size_base` so it generates one file in both use cases. Closes https://github.com/facebook/rocksdb/pull/3625 Differential Revision: D7311885 Pulled By: ajkr fbshipit-source-id: 97f249fa83a9924ac34357a4bb3189c969ecb107 --- db/db_compaction_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/db/db_compaction_test.cc b/db/db_compaction_test.cc index a729623ee..57beaa407 100644 --- a/db/db_compaction_test.cc +++ b/db/db_compaction_test.cc @@ -2751,6 +2751,7 @@ TEST_P(DBCompactionTestWithParam, ForceBottommostLevelCompaction) { rocksdb::SyncPoint::GetInstance()->EnableProcessing(); Options options = CurrentOptions(); + options.target_file_size_base = 100000000; options.write_buffer_size = 100000000; options.max_subcompactions = max_subcompactions_; DestroyAndReopen(options);