zhiqiang-hhhh commented on code in PR #37713:
URL: https://github.com/apache/doris/pull/37713#discussion_r1678903724


##########
be/src/vec/common/allocator.cpp:
##########
@@ -64,9 +64,9 @@ void Allocator<clear_memory_, mmap_populate, 
use_mmap>::sys_memory_check(size_t
             [[maybe_unused]] auto stack_trace_st =
                     doris::Status::Error<doris::ErrorCode::MEM_ALLOC_FAILED, 
true>(
                             injection_err_msg);
-#ifndef ENABLE_STACKTRACE
-            LOG(INFO) << stack_trace_st.to_string();
-#endif
+            if (!doris::config::enable_stacktrace) {

Review Comment:
   
执行到这里说明触发了概率性AllocateFailed,为了确保这里有且仅有一个堆栈,加了一个check,如果编译代码的时候不打堆栈,那这里手动获取堆栈打印到日志里。



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to