Zhan Zhang created SPARK-4103:
---------------------------------

             Summary: Clean up SessionState in HiveContext
                 Key: SPARK-4103
                 URL: https://issues.apache.org/jira/browse/SPARK-4103
             Project: Spark
          Issue Type: Bug
          Components: SQL
            Reporter: Zhan Zhang


Currently the sessionState in HiveContext is lazy, and to start the session, 
SessionState.start() has to be invoked to initialize it. Using ThreadLocal 
variable natively in hive to track the availability of SessionState and 
initialize it if required. It avoid multiple thread share the same SessionState 
and single thread invoke SessionState.start with the same SessionState multiple 
times, which seems to cause unexpected behavior. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to