You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org> on 2011/07/13 17:29:00 UTC

[jira] [Resolved] (HDFS-1752) Chance of Resource Leak in org.apache.hadoop.hdfs.server.namenode.FsImage.

     [ https://issues.apache.org/jira/browse/HDFS-1752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uma Maheswara Rao G resolved HDFS-1752.
---------------------------------------

    Resolution: Not A Problem

> Chance of Resource Leak in org.apache.hadoop.hdfs.server.namenode.FsImage.
> --------------------------------------------------------------------------
>
>                 Key: HDFS-1752
>                 URL: https://issues.apache.org/jira/browse/HDFS-1752
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>         Environment: Linux
>            Reporter: Uma Maheswara Rao G
>            Priority: Trivial
>
> In loadFSEdits method,
> 1) EditLogFileInputStream edits = new EditLogFileInputStream(NNStorage.getStorageFile(sd, NameNodeFile.EDITS));
> numEdits = loader.loadFSEdits(edits);
> edits.close(); 
> 2) edits = new EditLogFileInputStream(editsNew);
> numEdits += loader.loadFSEdits(edits);
> edits.close();
> Here if loadFSEdits throws exception then close will not be executed.
>  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira