[ https://issues.apache.org/jira/browse/SPARK-42895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17703814#comment-17703814 ]
Rui Wang commented on SPARK-42895: ---------------------------------- In fact spark.stop() does not stop the remote spark session but just local session and the gRPC channel. This error is expected. > 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