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

Sergey Shelukhin commented on HIVE-13592:
-----------------------------------------

No. There's no sync between get and put. replace() acts as CAS, and 
putIfAbsent() is just a special case of that. Otherwise, nothing prevents 
T1-get, T2-get, T2-put, T1-put from happening, and losing the values.

> metastore calls map is not thread safe
> --------------------------------------
>
>                 Key: HIVE-13592
>                 URL: https://issues.apache.org/jira/browse/HIVE-13592
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Sergey Shelukhin
>            Assignee: Sergey Shelukhin
>         Attachments: HIVE-13592.patch
>
>




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

Reply via email to