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

Brock Noland commented on HIVE-9243:
------------------------------------

I see. I will remove the synchronization and add some comment saying that spark 
is the only engine which is multi-threaded and thus it uses the threadlocal.

> Static Map in IOContext is not thread safe
> ------------------------------------------
>
>                 Key: HIVE-9243
>                 URL: https://issues.apache.org/jira/browse/HIVE-9243
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.15.0
>            Reporter: Brock Noland
>            Assignee: Brock Noland
>         Attachments: HIVE-9243.patch, HIVE-9243.patch
>
>
> This map can be accessed by multiple threads. We can either map it a 
> {{ConcurrentHashMap}} or synchronize the calls to this class.



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

Reply via email to