From 0aa17c1002ea146c89c61e7fe2f3a1e95585ca6c Mon Sep 17 00:00:00 2001 From: Maysam Yabandeh Date: Wed, 12 Dec 2018 16:27:37 -0800 Subject: [PATCH] Fix flaky test DBCompactionTest::DeleteFileRange (#4776) Summary: The test has been failing sporadically probably because the configured compaction options were actually unused. Verified that by the following: ``` ~/gtest-parallel/gtest-parallel ./db_compaction_test --gtest_filter=DBCompactionTest.DeleteFileRange --repeat=1000 ``` Pull Request resolved: https://github.com/facebook/rocksdb/pull/4776 Differential Revision: D13441052 Pulled By: maysamyabandeh fbshipit-source-id: d35075b9e6cef9b9c9d0d571f9cd72ade8eda55d --- db/db_compaction_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_compaction_test.cc b/db/db_compaction_test.cc index f20be594e..743ec33ba 100644 --- a/db/db_compaction_test.cc +++ b/db/db_compaction_test.cc @@ -1594,7 +1594,7 @@ TEST_F(DBCompactionTest, DeleteFileRange) { // Note that we don't delete level 0 files compact_options.change_level = true; compact_options.target_level = 1; - ASSERT_OK(dbfull()->TEST_CompactRange(0, nullptr, nullptr)); + ASSERT_OK(db_->CompactRange(compact_options, nullptr, nullptr)); ASSERT_OK( DeleteFilesInRange(db_, db_->DefaultColumnFamily(), nullptr, nullptr));