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

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


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 1a7fcdbd75d branch-4.0: [minor](Prefetch) Revert some useless check 
#59601 (#62000)
1a7fcdbd75d is described below

commit 1a7fcdbd75df48fdfd24cbad801d9930202bd5e7
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Apr 15 12:13:12 2026 +0800

    branch-4.0: [minor](Prefetch) Revert some useless check #59601 (#62000)
    
    Cherry-picked from #59601
    
    Co-authored-by: 黄瑞鑫 <[email protected]>
---
 be/src/io/fs/buffered_reader.cpp | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/be/src/io/fs/buffered_reader.cpp b/be/src/io/fs/buffered_reader.cpp
index 58630de76e2..2bf6fe8453a 100644
--- a/be/src/io/fs/buffered_reader.cpp
+++ b/be/src/io/fs/buffered_reader.cpp
@@ -566,10 +566,6 @@ Status PrefetchBuffer::read_buffer(size_t off, const char* 
out, size_t buf_len,
         reset_offset((off / _size) * _size);
         return read_buffer(off, out, buf_len, bytes_read);
     }
-    auto start = std::chrono::steady_clock::now();
-    // The baseline time is calculated by dividing the size of each buffer by 
MB/s.
-    // If it exceeds this value, it is considered a slow I/O operation.
-    constexpr auto read_time_baseline = 
std::chrono::seconds(s_max_pre_buffer_size / 1024 / 1024);
     {
         std::unique_lock lck {_lock};
         // buffer must be prefetched or it's closed
@@ -586,11 +582,6 @@ Status PrefetchBuffer::read_buffer(size_t off, const char* 
out, size_t buf_len,
             return Status::OK();
         }
     }
-    auto duration = std::chrono::duration_cast<std::chrono::seconds>(
-            std::chrono::steady_clock::now() - start);
-    if (duration > read_time_baseline) [[unlikely]] {
-        LOG_WARNING("The prefetch io is too slow");
-    }
     RETURN_IF_ERROR(_prefetch_status);
     // there is only parquet would do not sequence read
     // it would read the end of the file first


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

Reply via email to