From 60fa7d1365323f32b29b3441b3678dd3c319dafc Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Tue, 28 Oct 2014 15:17:02 -0700 Subject: [PATCH] Improve the robustnesss of PartialCompactionFailure test. Summary: Improve the robustness of PartialCompactionFailure test. Test Plan: ./db_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 927d97ed43..3ef636e7ca 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -9072,7 +9072,7 @@ TEST(DBTest, PartialCompactionFailure) { // all flushes succeeed. env_->periodic_non_writable_ = kNumInitialNewWritableFiles + kNumLevel0FlushNewWritableFiles + - kNumLevel1NewWritableFiles - 3; + kNumLevel1NewWritableFiles - 2; options.env = env_; DestroyAndReopen(&options); @@ -9080,7 +9080,7 @@ TEST(DBTest, PartialCompactionFailure) { const int kNumKeys = options.level0_file_num_compaction_trigger * (options.max_write_buffer_number - 1) * - kKeysPerBuffer * 1.0; + kKeysPerBuffer * 0.95; Random rnd(301); std::vector keys;