From b0cda4a116a333a10dbf42518f66e6d66e202fc7 Mon Sep 17 00:00:00 2001 From: sdong Date: Tue, 4 Nov 2014 11:07:36 -0800 Subject: [PATCH] DBTest.DynamicMemtableOptions to use single background compaction Summary: Now DBTest.DynamicMemtableOptions sets background compaction to be 4, without actually increasing thread pool size (even before the feature of automatic increasing it). To make sure the behavior stays the same after the automatic thread pool increasing, set it back to 1. Hopefully it can fix the occasional failure of the test. Test Plan: Run the test Reviewers: igor, ljin Reviewed By: ljin Subscribers: leveldb, dhruba Differential Revision: https://reviews.facebook.net/D28281 --- db/db_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/db_test.cc b/db/db_test.cc index 24bad640b..8b12d0a00 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -8082,7 +8082,7 @@ TEST(DBTest, Level0StopWritesTest) { Options options = CurrentOptions(); options.level0_slowdown_writes_trigger = 2; options.level0_stop_writes_trigger = 4; - options.disable_auto_compactions = 4; + options.disable_auto_compactions = true; options.max_mem_compaction_level = 0; Reopen(options); @@ -8424,7 +8424,7 @@ TEST(DBTest, DynamicMemtableOptions) { options.env = env_; options.create_if_missing = true; options.compression = kNoCompression; - options.max_background_compactions = 4; + options.max_background_compactions = 1; options.max_mem_compaction_level = 0; options.write_buffer_size = k64KB; options.max_write_buffer_number = 2;