You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2012/08/16 02:31:38 UTC
[jira] [Commented] (HADOOP-6207) libhdfs leaks object references
[ https://issues.apache.org/jira/browse/HADOOP-6207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435649#comment-13435649 ]
Colin Patrick McCabe commented on HADOOP-6207:
----------------------------------------------
bq. hdfsJniHelper.c: constructNewArrayString -> reference to newly created string is not released after it has been added to array. This leads to leaks when the array is destroyed, as all strings have reference count of at least one.
constructNewArrayString got deleted because it was buggy and not actually used by anyone.
bq. hdfs.c: hdfsOpen -> reference to jAttrString is never destroyed, resulting in leak
I can't find jAttrString in the new code; it seems to have been removed by an earlier change.
bq. fuse-dfs.c: When a file is closed, the reference to the file system object is not destroyed.
Fixed by HDFS-3608, which added a background thread which cleans up unused connections.
It seems like we should close this bug because these issues have been resolved.
> libhdfs leaks object references
> -------------------------------
>
> Key: HADOOP-6207
> URL: https://issues.apache.org/jira/browse/HADOOP-6207
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Reporter: Brian Bockelman
>
> libhdfs leaks many objects during normal operation. This becomes exacerbated by long-running processes (such as FUSE-DFS).
--
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