[ 
https://issues.apache.org/jira/browse/SPARK-59242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yang Jie resolved SPARK-59242.
------------------------------
    Fix Version/s: 4.4.0
       Resolution: Fixed

Issue resolved by pull request 58518
[https://github.com/apache/spark/pull/58518]

> NPE in SQLExecution.withNewExecutionId masks the real query failure when the 
> SparkContext is stopped concurrently
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-59242
>                 URL: https://issues.apache.org/jira/browse/SPARK-59242
>             Project: Spark
>          Issue Type: Task
>          Components: SQL
>    Affects Versions: 4.3.0
>            Reporter: Tengfei Huang
>            Assignee: Tengfei Huang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.4.0
>
>
> `SQLExecution.withNewExecutionId` dereferences sc.dagScheduler inside its 
> finally block. SparkContext.stop() sets _dagScheduler to null before it stops 
> the listener bus, so a query that finishes while the context is being torn 
> down reaches that line with a null receiver and throws a 
> `NullPointerException`.
> Because the NPE is thrown from a finally, it replaces the query's original 
> exception rather than being suppressed, and it skips every remaining cleanup 
> step in the block.



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