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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to