github-actions[bot] commented on PR #62155:
URL: https://github.com/apache/doris/pull/62155#issuecomment-4196771104

   No issues found in the current patch.
   
   Checkpoint conclusions:
   - Goal and correctness: The patch correctly prevents delayed `wake_up()` 
from resubmitting tasks that are already `FINISHED` or `FINALIZED`, matching 
the reported SIGSEGV race. The updated BE unit test covers both terminal-state 
no-submit cases and the normal `BLOCKED -> RUNNABLE` submit path.
   - Scope and clarity: The change is small and focused on the offending 
resubmit path in `PipelineTask::wake_up()`, with a matching targeted test 
update.
   - Concurrency: This is a concurrency-sensitive path 
(`Dependency::set_ready()` -> `wake_up()` -> scheduler submit vs. worker-thread 
close/finalize). The new guard keeps terminated tasks off the scheduler after 
teardown, adds no new lock-ordering risk, and does not introduce heavy work 
under locks.
   - Lifecycle management: The fix respects the existing terminal lifecycle by 
treating `FINISHED/FINALIZED -> RUNNABLE` as legal no-ops under 
`_wake_up_early` without reviving a torn-down task. No new lifecycle or 
static-init hazards were introduced.
   - Configuration: No configuration changes.
   - Compatibility: No protocol, storage-format, or rolling-upgrade 
compatibility impact.
   - Parallel paths: I checked the other `RUNNABLE` transition site and did not 
find another equivalent late-submit path that also needed this guard.
   - Conditional checks: The added terminal-state check is necessary, minimal, 
and clearly documented.
   - Test coverage: Adequate for this fix at the BE unit-test level; no 
additional FE/regression coverage appears necessary for this scheduler-state 
bug.
   - Observability: Existing task/debug state is sufficient; no extra metrics 
or logging seem required for this change.
   - Transaction/persistence: Not applicable.
   - Data write atomicity/correctness: Not applicable beyond scheduler 
task-state correctness, which looks preserved.
   - FE/BE variable passing: Not applicable.
   - Performance: No concern; the extra branch is trivial and avoids an invalid 
scheduler submission.
   - Other issues: None found in the reviewed diff and surrounding execution 
path.


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