[
https://issues.apache.org/jira/browse/HIVE-10956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14577724#comment-14577724
]
Sergey Shelukhin commented on HIVE-10956:
-----------------------------------------
Well it's a tradeoff... the leak will definitely be fixed by finalizer. I don't
think we have the pressure to close the connection ASAP. It's a much simpler
fix than the attached patch that reimplements threadlocal. As much as I dislike
Java, and GC in particular I'd rather not do that.
Other patch welcome :)
> 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)