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

ASF GitHub Bot updated SPARK-62307:
-----------------------------------
    Labels: pull-request-available  (was: )

> Release the server-side object of a native ML model of the Python client when 
> Python finalizes the model, as PySpark's __del__ does
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-62307
>                 URL: https://issues.apache.org/jira/browse/SPARK-62307
>             Project: Spark
>          Issue Type: Bug
>          Components: Connect
>    Affects Versions: 5.0.0
>            Reporter: Hyukjin Kwon
>            Priority: Major
>              Labels: pull-request-available
>
> PySpark 4.3.0 releases the server-side object of a model of Spark Connect ML 
> in JavaWrapper.__del__, which runs when Python finalizes the model, also when 
> the collector finalizes a reference cycle that holds it. So a model that a 
> finalizer then resurrects (a __del__ of an object of the cycle that saves the 
> model) has lost its object: its summary members and transform raise 
> CONNECT_ML.CACHE_INVALID. The native model of the Python client releases its 
> object when its Rust value is dropped, so a resurrected model keeps working. 
> Release it when Python finalizes the model, as PySpark's __del__ does.



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