Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-42895

ValueError when invoking any session operations on a stopped Spark session

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.4.0
    • Connect
    • None

    Description

      If a remote Spark session is stopped, trying to invoke any session operations will result in a ValueError. For example:

       

      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'

       

      Attachments

        Activity

          People

            allisonwang-db Allison Wang
            allisonwang-db Allison Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: