hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiruvel Thirumoolan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-12221) Concurrency issue in HCatUtil.getHiveMetastoreClient()
Date Wed, 21 Oct 2015 20:45:27 GMT

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

Thiruvel Thirumoolan commented on HIVE-12221:
---------------------------------------------

Good catch, thanks for raising this!

May I know the problem you ran into? I guess its multiple threads trying to get objects before
the cache initialization was complete?

> Concurrency issue in HCatUtil.getHiveMetastoreClient() 
> -------------------------------------------------------
>
>                 Key: HIVE-12221
>                 URL: https://issues.apache.org/jira/browse/HIVE-12221
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Roshan Naik
>
> HCatUtil.getHiveMetastoreClient()  uses double checked locking pattern
> to implement singleton, which is a broken pattern



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

Mime
View raw message