You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Haiyang Sun (Jira)" <ji...@apache.org> on 2026/09/04 13:39:00 UTC

[jira] [Created] (SPARK-59253) Fix direct dispatcher interrupt race

Haiyang Sun created SPARK-59253:
-----------------------------------

             Summary: Fix direct dispatcher interrupt race
                 Key: SPARK-59253
                 URL: https://issues.apache.org/jira/browse/SPARK-59253
             Project: Spark
          Issue Type: Sub-task
          Components: UDF
    Affects Versions: 4.4.0
            Reporter: Haiyang Sun


Capture and clear an interrupt that races with lifecycle notification in
`DirectWorkerDispatcher.awaitInFlightOperations()`.

The interrupt is checked after leaving the `lifecycleLock.synchronized` block.
`Thread.interrupted()` is evaluated first so the interrupt flag is always
cleared. `close()` restores the interrupt after cleanup completes.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org