yiguolei commented on code in PR #42006:
URL: https://github.com/apache/doris/pull/42006#discussion_r1823901157


##########
be/src/vec/sink/writer/async_result_writer.cpp:
##########
@@ -107,12 +107,13 @@ void AsyncResultWriter::process_block(RuntimeState* 
state, RuntimeProfile* profi
         force_close(status);
     }
 
-    if (state && state->get_query_ctx()) {
-        WorkloadGroupPtr wg_ptr = state->get_query_ctx()->workload_group();
-        if (wg_ptr && wg_ptr->get_cgroup_cpu_ctl_ptr()) {
-            Status ret = 
wg_ptr->get_cgroup_cpu_ctl_ptr()->add_thread_to_cgroup();
+    if (state && state->get_query_ctx() && 
state->get_query_ctx()->workload_group()) {
+        if (auto cg_ctl_sptr =
+                    
state->get_query_ctx()->workload_group()->get_cgroup_cpu_ctl_wptr().lock()) {

Review Comment:
   按照现在的代码,可能workload group是nullptr



-- 
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