This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new ea5f549443b branch-3.0: [file cache]add some stats for 
file_cache_statistics #51484 (#51900)
ea5f549443b is described below

commit ea5f549443b45481ce4d41534b7f3907ff9bb66d
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Jun 26 10:21:44 2025 +0800

    branch-3.0: [file cache]add some stats for file_cache_statistics #51484 
(#51900)
    
    Cherry-picked from #51484
    
    Co-authored-by: Wen Zhenghu <[email protected]>
---
 be/src/io/cache/block_file_cache.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/be/src/io/cache/block_file_cache.cpp 
b/be/src/io/cache/block_file_cache.cpp
index 72bbd708506..1e16d79dc5c 100644
--- a/be/src/io/cache/block_file_cache.cpp
+++ b/be/src/io/cache/block_file_cache.cpp
@@ -1789,6 +1789,7 @@ void BlockFileCache::run_background_monitor() {
             check_need_evict_cache_in_advance();
         } else {
             _need_evict_cache_in_advance = false;
+            _need_evict_cache_in_advance_metrics->set_value(0);
         }
 
         {
@@ -2174,6 +2175,12 @@ std::map<std::string, double> 
BlockFileCache::get_stats() {
     stats["disposable_queue_curr_elements"] =
             (double)_cur_disposable_queue_element_count_metrics->get_value();
 
+    stats["total_removed_counts"] = (double)_num_removed_blocks->get_value();
+    stats["total_hit_counts"] = (double)_num_hit_blocks->get_value();
+    stats["total_read_counts"] = (double)_num_read_blocks->get_value();
+    stats["need_evict_cache_in_advance"] = 
(double)_need_evict_cache_in_advance;
+    stats["disk_resource_limit_mode"] = (double)_disk_resource_limit_mode;
+
     return stats;
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to