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

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


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 5158fb2e12 [fix](spill) avoid printing too much status stack trace if 
gc dir does not exist (#24688)
5158fb2e12 is described below

commit 5158fb2e12f1265cbc86dbcdf0ca0a236fe50bf4
Author: TengJianPing <[email protected]>
AuthorDate: Thu Sep 21 08:24:59 2023 +0800

    [fix](spill) avoid printing too much status stack trace if gc dir does not 
exist (#24688)
---
 be/src/runtime/block_spill_manager.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/be/src/runtime/block_spill_manager.cpp 
b/be/src/runtime/block_spill_manager.cpp
index ad0d711c80..f8ee203702 100644
--- a/be/src/runtime/block_spill_manager.cpp
+++ b/be/src/runtime/block_spill_manager.cpp
@@ -70,6 +70,11 @@ void BlockSpillManager::gc(int64_t max_file_count) {
     for (const auto& path : _store_paths) {
         std::string gc_root_dir = fmt::format("{}/{}", path.path, 
BLOCK_SPILL_GC_DIR);
 
+        std::error_code ec;
+        exists = std::filesystem::exists(gc_root_dir, ec);
+        if (ec || !exists) {
+            continue;
+        }
         std::vector<io::FileInfo> dirs;
         auto st = io::global_local_filesystem()->list(gc_root_dir, false, 
&dirs, &exists);
         if (!st.ok()) {


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

Reply via email to