DanilSerd opened a new issue, #2356:
URL: https://github.com/apache/datafusion-ballista/issues/2356

   **Describe the bug**
   
   When an executor receives SIGTERM or Ctrl-C while running a task, it hangs 
indefinitely instead of exiting after the task completes.
   
   **To Reproduce**
   
   1. Start a scheduler and executor.
   2. Submit a query that keeps an executor task active.
   3. Send SIGTERM or Ctrl-C to the executor.
   4. Observe that the executor does not exit after the task finishes.
   
   **Expected behavior**
   
   The executor should exit after its active tasks have drained.
   
   **Additional context**
   
   `TasksDrainedFuture` in `ballista/executor/src/executor.rs` returns 
`Poll::Pending` when tasks are active but does not register a waker. Removing 
the final task from `abort_handles` therefore does not wake the shutdown future.
   
   This is distinct from #2105/#2107, which fixed shutdown notifications not 
reaching subscribers.


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