[ 
https://issues.apache.org/jira/browse/SPARK-37762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

angerszhu resolved SPARK-37762.
-------------------------------
    Resolution: Duplicate

> Close SessonState when each hive request done
> ---------------------------------------------
>
>                 Key: SPARK-37762
>                 URL: https://issues.apache.org/jira/browse/SPARK-37762
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: angerszhu
>            Priority: Major
>
> In current code in HiveClientImpl, we only callĀ 
> {code}
>     shim.setCurrentSessionState(state)
>     val ret = try {
>       f
>     } catch {
>       case e: NoClassDefFoundError if 
> e.getMessage.contains("apache/hadoop/hive/serde2/SerDe") =>
>         throw QueryExecutionErrors.serDeInterfaceNotFoundError(e)
>     } finally {
>       state.getConf.setClassLoader(originalConfLoader)
>       Thread.currentThread().setContextClassLoader(original)
>     }
>     ret
> {code}
> This will call SessionState.start() and won't  call SessionState.stop()



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to