diff --git a/be/test/io/cache/block_file_cache_test_meta_store.cpp b/be/test/io/cache/block_file_cache_test_meta_store.cpp index 79507d043d70e8..a77b267f089341 100644 --- a/be/test/io/cache/block_file_cache_test_meta_store.cpp +++ b/be/test/io/cache/block_file_cache_test_meta_store.cpp @@ -277,6 +277,7 @@ TEST_F(BlockFileCacheTest, version3_add_remove_restart) { ASSERT_EQ(cache._lru_recorder->_shadow_disposable_queue.get_elements_num_unsafe(), 5); EXPECT_EQ(cache.replay_lru_logs_once(), 0); EXPECT_EQ(cache._lru_recorder_log_replay_idle_metrics->get_value(), 1); + cache.dump_lru_queues(true); // check the meta store to see the content { @@ -312,8 +313,6 @@ TEST_F(BlockFileCacheTest, version3_add_remove_restart) { verify_meta_key(*meta_store, 50, "key4", 300000, FileCacheType::DISPOSABLE, 0, 100000); verify_meta_key(*meta_store, 50, "key4", 400000, FileCacheType::DISPOSABLE, 0, 100000); } - std::this_thread::sleep_for( - std::chrono::milliseconds(2 * config::file_cache_background_lru_dump_interval_ms)); } { // cache2