ramakrishna chilaka created SPARK-37797:
-------------------------------------------

             Summary: Spark Thrift Server's query timeout doesn't cancel the 
synchronous query 
                 Key: SPARK-37797
                 URL: https://issues.apache.org/jira/browse/SPARK-37797
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.2.0
            Reporter: ramakrishna chilaka


override protected def cleanup(): Unit = {
    if (runInBackground) {
      val backgroundHandle = getBackgroundHandle()
      if (backgroundHandle != null) {
        logInfo("NFER: background handle is " + backgroundHandle.toString)
        backgroundHandle.cancel(true)
      } else {
        logInfo("NFER: background handle is null")
      }
    } else {
      logInfo("NFER: not running in background")
    }
    // RDDs will be cleaned automatically upon garbage collection.
    if (statementId != null) {
      sqlContext.sparkContext.cancelJobGroup(statementId)
    }
  }

^^^ cleanup only happens when the thread is running in the background. sync 
queries are not executed in background.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to