From cd43446d017fd3929e5883bccf1206afafd57952 Mon Sep 17 00:00:00 2001 From: Siying Dong Date: Mon, 20 May 2019 13:47:32 -0700 Subject: [PATCH] Improve DBTablePropertiesTest.GetPropertiesOfTablesInRange (#5302) Summary: DBTablePropertiesTest.GetPropertiesOfTablesInRange sometimes hits the assert that generated LSM-tree doesn't have L1 file. Tighten the compaction triggering condition even further, hoping it goes away. Pull Request resolved: https://github.com/facebook/rocksdb/pull/5302 Differential Revision: D15325971 Pulled By: siying fbshipit-source-id: 3e032bdb16fe8d98d5fcfcd65dd8be9781f3d6ae --- db/db_table_properties_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/db_table_properties_test.cc b/db/db_table_properties_test.cc index 5a54fd81c..77ea0020d 100644 --- a/db/db_table_properties_test.cc +++ b/db/db_table_properties_test.cc @@ -139,12 +139,12 @@ TEST_F(DBTablePropertiesTest, GetPropertiesOfTablesInRange) { Options options; options.create_if_missing = true; options.write_buffer_size = 4096; - options.max_write_buffer_number = 3; + options.max_write_buffer_number = 2; options.level0_file_num_compaction_trigger = 2; options.level0_slowdown_writes_trigger = 2; - options.level0_stop_writes_trigger = 4; + options.level0_stop_writes_trigger = 2; options.target_file_size_base = 2048; - options.max_bytes_for_level_base = 10240; + options.max_bytes_for_level_base = 40960; options.max_bytes_for_level_multiplier = 4; options.hard_pending_compaction_bytes_limit = 16 * 1024; options.num_levels = 8;