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


##########
be/src/exec/pipeline/pipeline_task.cpp:
##########
@@ -1076,12 +1085,18 @@ void PipelineTask::wake_up(Dependency* dep, 
std::unique_lock<std::mutex>& /* dep
 Status PipelineTask::_state_transition(State new_state) {
     const auto& table =
             _wake_up_early ? WAKE_UP_EARLY_LEGAL_STATE_TRANSITION : 
LEGAL_STATE_TRANSITION;
-    if (!table[(int)new_state].contains(_exec_state)) {
+    auto current_state = _exec_state.load();
+    if (!table[(int)new_state].contains(current_state)) {

Review Comment:
   非wake up early的逻辑先不管



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