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 a3f1f8ae64d Fix start be core caused by query stats report (#30836)
a3f1f8ae64d is described below

commit a3f1f8ae64da46f2ba3ba2812c8bb94314f52de9
Author: wangbo <wan...@apache.org>
AuthorDate: Mon Feb 5 14:31:11 2024 +0800

    Fix start be core caused by query stats report (#30836)
---
 be/src/common/daemon.cpp | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/be/src/common/daemon.cpp b/be/src/common/daemon.cpp
index efaba2d861c..f91aec88f59 100644
--- a/be/src/common/daemon.cpp
+++ b/be/src/common/daemon.cpp
@@ -373,8 +373,13 @@ void Daemon::block_spill_gc_thread() {
 
 void Daemon::query_runtime_statistics_thread() {
     while (!_stop_background_threads_latch.wait_for(
-            
std::chrono::milliseconds(config::report_query_statistics_interval_ms))) {
-        
ExecEnv::GetInstance()->runtime_query_statistics_mgr()->report_runtime_query_statistics();
+                   
std::chrono::milliseconds(config::report_query_statistics_interval_ms)) &&
+           !k_doris_exit) {
+        if (ExecEnv::GetInstance()->initialized()) {
+            ExecEnv::GetInstance()
+                    ->runtime_query_statistics_mgr()
+                    ->report_runtime_query_statistics();
+        }
     }
 }
 


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

Reply via email to