[ https://issues.apache.org/jira/browse/HIVE-15950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eugene Koifman updated HIVE-15950: ---------------------------------- Description: Currently it caches IMetastoreClient on init() but the same connection is indirectly saved using ThreadLocal (since Hive.get() uses ThreadLocal). So it may cause something other than DbTxnManager to use the same connection. It needs to use the same Metastore client as the caller was: Currently it caches IMetastoreClient on init() but the same connection is indirectly saved using ThreadLocal (since Hive.get() uses ThreadLocal). So it may cause something other than DbTxnManager to use the same connection. > Make DbTxnManager use Metastore client consistently with callers > ---------------------------------------------------------------- > > Key: HIVE-15950 > URL: https://issues.apache.org/jira/browse/HIVE-15950 > Project: Hive > Issue Type: Bug > Components: Transactions > Reporter: Eugene Koifman > Assignee: Eugene Koifman > Attachments: HIVE-15950.01.patch, HIVE-15950.02.patch > > > Currently it caches IMetastoreClient on init() but the same connection is > indirectly saved using ThreadLocal (since Hive.get() uses ThreadLocal). > So it may cause something other than DbTxnManager to use the same connection. > It needs to use the same Metastore client as the caller -- This message was sent by Atlassian JIRA (v6.3.15#6346)