You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Allison Wang (Jira)" <ji...@apache.org> on 2023/03/22 08:59:00 UTC
[jira] [Created] (SPARK-42895) ValueError when invoking any session operations on a stopped Spark session
Allison Wang created SPARK-42895:
------------------------------------
Summary: 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
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org