From 46a7048dcdd1ccc29058d1ed1f16dd19fb532721 Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Thu, 22 Jan 2015 15:42:53 -0800 Subject: [PATCH] Reduce false alarm in ThreadStatusMultipleCompaction test --- 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 1d6962b58..c734351b5 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -9607,9 +9607,9 @@ TEST(DBTest, ThreadStatusMultipleCompaction) { } if (options.enable_thread_tracking) { - // Expect rocksdb to at least utilize 80% of the compaction threads. + // Expect rocksdb to at least utilize 60% of the compaction threads. ASSERT_GE(1.0 * max_compaction_count, - 0.8 * options.max_background_compactions); + 0.6 * options.max_background_compactions); } else { // If thread tracking is not enabled, compaction count should be 0. ASSERT_EQ(max_compaction_count, 0);