summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Dillinger <peterd@meta.com>2024-08-26 14:08:21 -0700
committerPeter Dillinger <peterd@meta.com>2024-08-27 13:39:35 -0700
commit13d5230e5da650cf93e6dccb389c82d316d355c6 (patch)
treefca703cb75038b798590638918abccd248e12e02
parentca3418ca3d4f4e0bea27bf0dde8a7abc3474183b (diff)
Fix flaky test DBTest2.VariousFileTemperatures (#12974)v9.6.1
Summary: ... apparently due to potentially not purging obsolete files after CompactRange Example: https://github.com/facebook/rocksdb/actions/runs/10564621261/job/29267393711?pr=12959 Pull Request resolved: https://github.com/facebook/rocksdb/pull/12974 Test Plan: reproduced failure with USE_CLANG=1 COERCE_CONTEXT_SWITCH=1, now fixed Reviewed By: cbi42 Differential Revision: D61812600 Pulled By: pdillinger fbshipit-source-id: d4b23e1a179bb8ec39875ed7a8ce1649fa3344bd
-rw-r--r--db/db_test2.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/db_test2.cc b/db/db_test2.cc
index f380144c6..92211ad42 100644
--- a/db/db_test2.cc
+++ b/db/db_test2.cc
@@ -6739,6 +6739,7 @@ TEST_F(DBTest2, VariousFileTemperatures) {
TCM({{options.default_write_temperature, 2}}));
ASSERT_OK(db_->CompactRange({}, nullptr, nullptr));
+ ASSERT_OK(dbfull()->TEST_WaitForBackgroundWork());
ASSERT_EQ(test_fs->CountCurrentSstFilesByTemp(),
TCM({{options.last_level_temperature, 1}}));