Skip to content

Commit

Permalink
Fix rare failure in DBBlockCacheTypeTest.Uncache
Browse files Browse the repository at this point in the history
Summary: Following up on facebook#12748 after seeing recurrence in
https://github.com/facebook/rocksdb/actions/runs/9522985253/job/26253605587?pr=12774

Test Plan: Was able to reproduce failure and verify fix this time
using COERCE_CONTEXT_SWITCH=1 :)
  • Loading branch information
pdillinger committed Jun 14, 2024
1 parent f5e44f3 commit 6e0f431
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/db_block_cache_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1409,6 +1409,7 @@ TEST_P(DBBlockCacheTypeTest, Uncache) {

// Combine into one file, making the originals obsolete
ASSERT_OK(db_->CompactRange({}, nullptr, nullptr));
ASSERT_OK(dbfull()->TEST_WaitForBackgroundWork());

ASSERT_EQ(1, NumTableFilesAtLevel(1));

Expand Down

0 comments on commit 6e0f431

Please sign in to comment.