BiteTheDDDDt commented on code in PR #28493:
URL: https://github.com/apache/doris/pull/28493#discussion_r1429006518


##########
be/src/runtime/query_context.cpp:
##########
@@ -55,6 +63,14 @@ QueryContext::~QueryContext() {
     }
 
     LOG_INFO("Query {} deconstructed, {}", print_id(_query_id), 
mem_tracker_msg);
+    // Not release the the thread token in query context's dector method, 
because the query
+    // conext may be dectored in the thread token it self. It is very 
dangerous and may core.
+    // And also thread token need shutdown, it may take some time, may cause 
the thread that
+    // release the token hang, the thread maybe a pipeline task scheduler 
thread.
+    if (_thread_token) {
+        
static_cast<void>(ExecEnv::GetInstance()->lazy_release_obj_pool()->submit(

Review Comment:
   When will _thread_token be released?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to