Skip to content

Commit 13d5230

Browse files
committed
Fix flaky test DBTest2.VariousFileTemperatures (#12974)
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: #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
1 parent ca3418c commit 13d5230

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

db/db_test2.cc

+1
Original file line numberDiff line numberDiff line change
@@ -6739,6 +6739,7 @@ TEST_F(DBTest2, VariousFileTemperatures) {
67396739
TCM({{options.default_write_temperature, 2}}));
67406740

67416741
ASSERT_OK(db_->CompactRange({}, nullptr, nullptr));
6742+
ASSERT_OK(dbfull()->TEST_WaitForBackgroundWork());
67426743

67436744
ASSERT_EQ(test_fs->CountCurrentSstFilesByTemp(),
67446745
TCM({{options.last_level_temperature, 1}}));

0 commit comments

Comments
 (0)