Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions be/src/io/cache/fs_file_cache_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -877,9 +877,9 @@ void FSFileCacheStorage::load_cache_info_into_memory(BlockFileCache* _mgr) const

// If the difference is more than threshold, load from filesystem as well
if (estimated_file_count > 100) {
double difference_ratio =
(static_cast<double>(estimated_file_count) - static_cast<double>(db_block_count)) /
static_cast<double>(estimated_file_count);
double absolute_difference = std::abs(static_cast<double>(estimated_file_count) -
static_cast<double>(db_block_count));
double difference_ratio = absolute_difference / static_cast<double>(estimated_file_count);

if (difference_ratio > config::file_cache_meta_store_vs_file_system_diff_num_threshold) {
LOG(WARNING) << "Significant difference between DB blocks (" << db_block_count
Expand Down