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

Hyukjin Kwon resolved SPARK-62227.
----------------------------------
    Resolution: Fixed

Issue resolved by pull request 920
[https://github.com/apache/spark-connect-rust/pull/920]

> Keep the exception that propagates while a native object of a model, a 
> checkpoint or an execution is dropped, without a crash, in the Python client
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-62227
>                 URL: https://issues.apache.org/jira/browse/SPARK-62227
>             Project: Spark
>          Issue Type: Bug
>          Components: Connect
>    Affects Versions: connect-rust-4.4.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: connect-rust-4.4.0
>
>
> When the last owner of a fitted model, a checkpoint or an execution is 
> dropped while an exception propagates, as CPython does while it unwinds a 
> frame, the drop runs the finalizer request of the native object, whose hooks 
> call Python (the call stack and the refresher of the client) and consume the 
> pending exception: CPython then crashes in PyException_SetTraceback(NULL) of 
> a handler in the frame, or the caller gets SystemError: error return without 
> exception set, instead of the exception of PySpark, and with the refresher 
> the deletion of the model is not sent. Preserve the pending exception around 
> the native drop and finalizer paths that call Python, as CPython does around 
> __del__.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to