This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new cae98934272 branch-4.1: [minor](Prefetch) Revert some useless check
#59601 (#62001)
cae98934272 is described below
commit cae98934272d7037f2390e0af63071dc8923299b
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Apr 3 22:13:28 2026 +0800
branch-4.1: [minor](Prefetch) Revert some useless check #59601 (#62001)
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 d686cc04e43..7c215696375 100644
--- a/be/src/io/fs/buffered_reader.cpp
+++ b/be/src/io/fs/buffered_reader.cpp
@@ -560,10 +560,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
@@ -580,11 +576,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]