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

Hyukjin Kwon resolved SPARK-55326.
----------------------------------
    Fix Version/s: 4.2.0
       Resolution: Fixed

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

> Add an optional connect session release in pyspark
> --------------------------------------------------
>
>                 Key: SPARK-55326
>                 URL: https://issues.apache.org/jira/browse/SPARK-55326
>             Project: Spark
>          Issue Type: Improvement
>          Components: Connect, PySpark
>    Affects Versions: 4.2.0
>            Reporter: Bobby Wang
>            Assignee: Bobby Wang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.2.0
>
>
> In Spark Connect, if a user’s code does not include {{{}spark.stop(){}}}—an 
> omission that is quite common—the session will persist on the Spark Connect 
> Server until the idle timeout elapses, which can lead to unnecessary resource 
> waste. For this reason, I propose adding an environment variable in PySpark 
> to implement session release logic within the PySpark process’s shutdown 
> hook. When this environment variable is enabled, PySpark will attempt to 
> release the session as best it can before the Python process exits.
>  
>  



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