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

Sergey Shelukhin commented on HIVE-16323:
-----------------------------------------

Also; Hive client is used via a threadlocal. Is sharing metastore client 
between threads safe? That exception seems to imply someone closes metastore 
client while the pool threads are still running. I am guessing other code 
doesn't hit that because it calls getMSC, but the whole thing where some 
threads close and null it out and other threads reopen it, seems fragile.


> HS2 JDOPersistenceManagerFactory.pmCache leaks after HIVE-14204
> ---------------------------------------------------------------
>
>                 Key: HIVE-16323
>                 URL: https://issues.apache.org/jira/browse/HIVE-16323
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>         Attachments: HIVE-16323.1.patch, HIVE-16323.2.patch, PM_leak.png
>
>
> Hive.loadDynamicPartitions creates threads with new embedded rawstore, but 
> never close them, thus we leak PersistenceManager one per such thread.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to