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 49ed7c8f165 [fix](cloud) fix evict_in_advance ut for branch-3.0 
(#48730)
49ed7c8f165 is described below

commit 49ed7c8f165acc3fb6869014d0238b8fcd677fa2
Author: zhengyu <zhangzhen...@selectdb.com>
AuthorDate: Thu Mar 6 12:22:13 2025 +0800

    [fix](cloud) fix evict_in_advance ut for branch-3.0 (#48730)
---
 be/test/io/cache/block_file_cache_test.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/test/io/cache/block_file_cache_test.cpp 
b/be/test/io/cache/block_file_cache_test.cpp
index e42b6516d58..88b9ab8667d 100644
--- a/be/test/io/cache/block_file_cache_test.cpp
+++ b/be/test/io/cache/block_file_cache_test.cpp
@@ -6853,13 +6853,13 @@ TEST_F(BlockFileCacheTest, evict_in_advance) {
     ASSERT_EQ(cache.get_stats_unsafe()["index_queue_curr_size"], 0);
     ASSERT_EQ(cache.get_stats_unsafe()["normal_queue_curr_size"], cache_max);
 
-    config::file_cache_evict_in_advance_batch_bytes = 200000;     // evict 2 
100000 blocks
+    config::file_cache_evict_in_advance_batch_bytes = 200000;     // evict 2 
200000 blocks
     config::enable_evict_file_cache_in_advance = true;            // enable 
evict in advance
     std::this_thread::sleep_for(std::chrono::milliseconds(2000)); // wait for 
clear
     ASSERT_EQ(cache.get_stats_unsafe()["disposable_queue_curr_size"], 0);
     ASSERT_EQ(cache.get_stats_unsafe()["ttl_queue_curr_size"], 0);
     ASSERT_EQ(cache.get_stats_unsafe()["index_queue_curr_size"], 0);
-    ASSERT_EQ(cache.get_stats_unsafe()["normal_queue_curr_size"], cache_max - 
200000);
+    ASSERT_EQ(cache.get_stats_unsafe()["normal_queue_curr_size"], cache_max - 
400000);
 
     if (fs::exists(cache_base_path)) {
         fs::remove_all(cache_base_path);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to