hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vaibhav Gumashta (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-10925) Non-static threadlocals in metastore code can potentially cause memory leak
Date Thu, 04 Jun 2015 18:41:38 GMT

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

Vaibhav Gumashta commented on HIVE-10925:
-----------------------------------------

cc [~ekoifman] [~alangates] 

I'm making the transaction handler a static threadlocal in this patch. Can you review that
change?

> Non-static threadlocals in metastore code can potentially cause memory leak
> ---------------------------------------------------------------------------
>
>                 Key: HIVE-10925
>                 URL: https://issues.apache.org/jira/browse/HIVE-10925
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.14.0, 1.0.0, 1.2.0, 1.1.0, 0.13
>            Reporter: Vaibhav Gumashta
>            Assignee: Vaibhav Gumashta
>         Attachments: HIVE-10925.1.patch
>
>
> There are many places where non-static threadlocals are used. I can't seem to find a
good logic for using them. However, they can potentially result in leaking objects if for
example they are created in a long running thread every time the thread handles a new session.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message