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

client will wait forever if session in spark connect server is evicted

    XMLWordPrintableJSON

Details

    Description

      Step1. start a spark connect server

      Step2. submit a spark job which will run long

      from pyspark.sql import SparkSession
      spark = SparkSession.builder.remote(f"sc://HOST:PORT/;user_id=job").create()
      spark.sql("A SQL will run longer than creating 100 sessions").show() 

       

      Step3. create more than 100 sessions

      Tips: Run concurrently with step2

      for i in range(0, 200):
          spark = SparkSession.builder.remote(f"sc://HOST:PORT/;user_id={i}").create()
          spark.sql("show databases") 

       

      When the python code in step3 is executed, the session created in step2 will be evicted, and the client will wait forever

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xieshuaihu xie shuiahu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: