You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Sergey Shelukhin (JIRA)" <ji...@apache.org> on 2015/06/08 21:21:00 UTC
[jira] [Comment Edited] (HIVE-10956) HS2 leaks HMS connections
[ https://issues.apache.org/jira/browse/HIVE-10956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14577679#comment-14577679 ]
Sergey Shelukhin edited comment on HIVE-10956 at 6/8/15 7:20 PM:
-----------------------------------------------------------------
Couldn't tid be reused? Overall I don't quite understand the mechanism of the leak - don't threadlocals for dead threads get GCed? Maybe finalize can be added to take care of connections in such case
was (Author: sershe):
Couldn't tid be reused? Overall I don't quite understand the mechanism of the leak - don't threadlocals for dead threads get GCed?
> HS2 leaks HMS connections
> -------------------------
>
> Key: HIVE-10956
> URL: https://issues.apache.org/jira/browse/HIVE-10956
> Project: Hive
> Issue Type: Bug
> Reporter: Jimmy Xiang
> Assignee: Jimmy Xiang
> Fix For: 1.3.0
>
> Attachments: HIVE-10956.1.patch
>
>
> HS2 uses threadlocal to cache HMS client in class Hive. When the thread is dead, the HMS client is not closed. So the connection to the HMS is leaked.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)