hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uma Maheswara Rao G (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-7188) Chance of Resource Leak in org.apache.hadoop.hdfs.server.namenode.FsImage.
Date Mon, 14 Mar 2011 15:23:29 GMT
Chance of Resource Leak in org.apache.hadoop.hdfs.server.namenode.FsImage.
--------------------------------------------------------------------------

                 Key: HADOOP-7188
                 URL: https://issues.apache.org/jira/browse/HADOOP-7188
             Project: Hadoop Common
          Issue Type: Bug
         Environment: Linux
            Reporter: Uma Maheswara Rao G


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

Mime
View raw message