You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by zc...@apache.org on 2025/12/11 18:10:24 UTC

(doris) branch master updated: [chore](load) Not log unnecessary stack information (#58420)

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

zclll 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 c4bdf6f8cc2 [chore](load) Not log unnecessary stack information (#58420)
c4bdf6f8cc2 is described below

commit c4bdf6f8cc229c679639ad44b1523d90f6fdc222
Author: ivin <uc...@qq.com>
AuthorDate: Fri Dec 12 02:10:16 2025 +0800

    [chore](load) Not log unnecessary stack information (#58420)
    
    `stream_load_recorder_manager_last_fetch_key` key not found is not a
    fatal issue here, no need to log the following stack information
    
    ```
    W20251126 17:32:35.140445 2054603 status.h:439] meet error status: [NOT_FOUND]Key not found: stream_load_recorder_manager_last_fetch_key
    
            0#  doris::StreamLoadRecorder::get(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool) at /data11/chen/doris-la
    test/be/src/common/status.h:494
            1#  doris::StreamLoadRecorderManager::_load_last_fetch_key() at /opt/ldb_toolchain/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/basic_string.h:239
            2#  doris::StreamLoadRecorderManager::start() at /opt/ldb_toolchain/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/std_thread.h:103
            3#  doris::ExecEnv::_init(std::vector<doris::StorePath, std::allocator<doris::StorePath> > const&, std::vector<doris::StorePath, std::allocator<doris::StorePath> > const&, std::set<std::__cxx11::basic_string<char, std::char_traits<char
    >, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) at /data11/chen/
    doris-latest/be/src/runtime/exec_env_init.cpp:406
            4#  doris::ExecEnv::init(doris::ExecEnv*, std::vector<doris::StorePath, std::allocator<doris::StorePath> > const&, std::vector<doris::StorePath, std::allocator<doris::StorePath> > const&, std::set<std::__cxx11::basic_string<char, std::
    char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) at /data11/chen/doris-latest/be/src/runtime/exec_env_init.cpp:188
            5#  main at /data11/chen/doris-latest/be/src/service/doris_main.cpp:0
            6#  __libc_start_main
            7#  _start
    I20251126 17:32:35.140537 2054603 stream_load_recorder_manager.cpp:75] No stream load recorder manager last fetch key found in RocksDB, starting from beginning
    ```
---
 be/src/runtime/stream_load/stream_load_recorder.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/runtime/stream_load/stream_load_recorder.cpp b/be/src/runtime/stream_load/stream_load_recorder.cpp
index c9da300ca73..bcf729b3173 100644
--- a/be/src/runtime/stream_load/stream_load_recorder.cpp
+++ b/be/src/runtime/stream_load/stream_load_recorder.cpp
@@ -113,7 +113,7 @@ Status StreamLoadRecorder::get(const std::string& key, std::string* value, bool
     rocksdb::ReadOptions read_options;
     rocksdb::Status s = _db->Get(read_options, handle, rocksdb::Slice(key), value);
     if (s.IsNotFound()) {
-        return Status::NotFound("Key not found: {}", key);
+        return Status::NotFound<false>("Key not found: {}", key);
     }
     if (!s.ok()) {
         LOG(WARNING) << "rocks db get key:" << key << " failed, reason:" << s.ToString();


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