[ https://issues.apache.org/jira/browse/SPARK-42895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17705782#comment-17705782 ]
Snoot.io commented on SPARK-42895: ---------------------------------- User 'allisonwang-db' has created a pull request for this issue: https://github.com/apache/spark/pull/40536 > ValueError when invoking any session operations on a stopped Spark session > -------------------------------------------------------------------------- > > Key: SPARK-42895 > URL: https://issues.apache.org/jira/browse/SPARK-42895 > Project: Spark > Issue Type: Bug > Components: Connect > Affects Versions: 3.5.0 > Reporter: Allison Wang > Priority: Major > > If a remote Spark session is stopped, trying to invoke any session operations > will result in a ValueError. For example: > > {code:java} > spark.stop() > spark.sql("select 1") > ValueError: Cannot invoke RPC: Channel closed! > During handling of the above exception, another exception occurred: > Traceback (most recent call last): > ... > return e.code() == grpc.StatusCode.UNAVAILABLE > AttributeError: 'ValueError' object has no attribute 'code'{code} > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org