[ 
https://issues.apache.org/jira/browse/HIVE-13194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15253996#comment-15253996
 ] 

Aihua Xu commented on HIVE-13194:
---------------------------------

Yeah. I also noticed that metaCallTimeMap is not thread safe from one test 
case. We should make it synchronized.

I also thought of a pool of Hive objects, but the reason that we can't use that 
probably is, different connections may have different hiveconf and then require 
different connections. 

> Hive object is not thread safe, is shared via a threadlocal and thus should 
> not be shared via session - part 2
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-13194
>                 URL: https://issues.apache.org/jira/browse/HIVE-13194
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Sergey Shelukhin
>            Assignee: Sergey Shelukhin
>         Attachments: HIVE-13194.patch
>
>
> Session has session Hive object stored in a field. Given that Hive object is 
> not thread safe and is also taken from a threadlocal to start with, that is 
> not a good idea.



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

Reply via email to