You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ashutosh Chauhan (JIRA)" <ji...@apache.org> on 2012/05/08 04:11:49 UTC

[jira] [Commented] (HIVE-3008) Memory leak in TUGIContainingTransport

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

Ashutosh Chauhan commented on HIVE-3008:
----------------------------------------

There is a weakhashmap which is from TTransport->TUGIContainingTransport. The map is weak so that when TTransport gets out of scope, it can be GC'ed even though map contains a reference to it. But, since TUGIContainingTransport contains a reference to TTransport, even when TTransport is out of scope otherwise, its ref is still retained. Solution is to wrap reference of TTransport in TUGIContainingTransport in WeakReference.  
                
> Memory leak in TUGIContainingTransport
> --------------------------------------
>
>                 Key: HIVE-3008
>                 URL: https://issues.apache.org/jira/browse/HIVE-3008
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.8.1, 0.9.0
>            Reporter: Ashutosh Chauhan
>            Assignee: Ashutosh Chauhan
>
> Identical bug as in THRIFT-1468

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira