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

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


The following commit(s) were added to refs/heads/master by this push:
     new bd374aa7051 [Fix](filecache) Avoid read peer in local mode (#58063)
bd374aa7051 is described below

commit bd374aa7051e5c174d4534bc40d3f1c8b317a549
Author: Gavin Chou <[email protected]>
AuthorDate: Tue Nov 18 07:05:19 2025 +0800

    [Fix](filecache) Avoid read peer in local mode (#58063)
    
    cold hot separation will call cached remote reader
---
 be/src/io/cache/cached_remote_file_reader.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/be/src/io/cache/cached_remote_file_reader.cpp 
b/be/src/io/cache/cached_remote_file_reader.cpp
index 0fdcce45c8a..ed7fa7fd51a 100644
--- a/be/src/io/cache/cached_remote_file_reader.cpp
+++ b/be/src/io/cache/cached_remote_file_reader.cpp
@@ -259,7 +259,8 @@ Status CachedRemoteFileReader::_execute_remote_read(const 
std::vector<FileBlockS
         }
     });
 
-    if (!_is_doris_table || io_ctx->is_warmup || 
!doris::config::enable_cache_read_from_peer) {
+    if (!doris::config::is_cloud_mode() || !_is_doris_table || 
io_ctx->is_warmup ||
+        !doris::config::enable_cache_read_from_peer) {
         return execute_s3_read(empty_start, size, buffer, stats, io_ctx, 
_remote_file_reader);
     } else {
         // first try peer read, if peer failed, fallback to S3


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

Reply via email to