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

yiguolei 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 1a1cfeaea5f [opt][file cache] Do not return error if file cache can 
not be created if ignore_broken_disk is set (#42145)
1a1cfeaea5f is described below

commit 1a1cfeaea5fb8d3e94a6f9846a53601decc0b66f
Author: Zijie Lu <wslz...@gmail.com>
AuthorDate: Fri Nov 1 09:51:00 2024 +0800

    [opt][file cache] Do not return error if file cache can not be created if 
ignore_broken_disk is set (#42145)
    
    ## Proposed changes
    
    Issue Number: close #xxx
    
    <!--Describe your changes.-->
    If `ignore_broken_disk` is set, do not return error if file cache can
    not be created
    
    Signed-off-by: ZijieLu <wslz...@gmail.com>
---
 be/src/runtime/exec_env_init.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/be/src/runtime/exec_env_init.cpp b/be/src/runtime/exec_env_init.cpp
index 9e1536d5186..3d8affade82 100644
--- a/be/src/runtime/exec_env_init.cpp
+++ b/be/src/runtime/exec_env_init.cpp
@@ -442,8 +442,11 @@ void 
ExecEnv::init_file_cache_factory(std::vector<doris::CachePath>& cache_paths
     }
     for (const auto& status : cache_status) {
         if (!status.ok()) {
-            LOG(FATAL) << "failed to init file cache, err: " << status;
-            exit(-1);
+            if (!doris::config::ignore_broken_disk) {
+                LOG(FATAL) << "failed to init file cache, err: " << status;
+                exit(-1);
+            }
+            LOG(WARNING) << "failed to init file cache, err: " << status;
         }
     }
 }


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

Reply via email to