hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Lerman (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HIVE-816) MetastoreClient not being cached
Date Fri, 04 Sep 2009 20:40:57 GMT

     [ https://issues.apache.org/jira/browse/HIVE-816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dave Lerman updated HIVE-816:
-----------------------------

    Attachment: HIVE-816.patch

> MetastoreClient not being cached
> --------------------------------
>
>                 Key: HIVE-816
>                 URL: https://issues.apache.org/jira/browse/HIVE-816
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.3.0
>            Reporter: Dave Lerman
>            Priority: Minor
>         Attachments: HIVE-816.patch
>
>
> In org.apache.hadoop.hive.ql.metadata.Hive.getMSC(), we create a new MetaStoreClient
on every call because the result is not getting properly cached in the threadLocal:
> {code}
>   private IMetaStoreClient getMSC() throws MetaException {
>     IMetaStoreClient msc = threadLocalMSC.get();
>     if(msc == null) {
>       msc = this.createMetaStoreClient();
>       // THERE SHOULD BE A threadLocalMSC.set here!
>     }
>     return msc;
>   }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message