mrhhsg opened a new pull request, #66385:
URL: https://github.com/apache/doris/pull/66385

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Problem Summary: A delayed dependency wake-up can leave a terminal pipeline 
task in the runnable queue. The stale task may be executed again after its 
shared operator state has been released, causing invalid virtual calls or 
use-after-free.
   
   This change:
   
   - keeps queued tasks and their fragment contexts alive until the queue entry 
is consumed;
   - stores dependency waiters weakly and pins them only while delivering a 
wake-up;
   - atomically claims PipelineX tasks and drops terminal tasks before 
accessing execution state;
   - drains pending queue entries outside the queue lock during shutdown.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test:
       - Unit Test: `./run-be-ut.sh --run 
--filter='TaskQueueTest.*:TaskSchedulerTest.*' -j 24`
       - Regression test: Not required for this scheduler lifecycle fix
   - Behavior changed: No
   - Does this need documentation: No
   


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