You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by "Zheng Shao (JIRA)" <ji...@apache.org> on 2010/02/21 09:20:27 UTC
[jira] Resolved: (MAPREDUCE-1504) SequenceFile.Reader constructor
leaking resources
[ https://issues.apache.org/jira/browse/MAPREDUCE-1504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zheng Shao resolved MAPREDUCE-1504.
-----------------------------------
Resolution: Fixed
Fixed in HADOOP-5476
> SequenceFile.Reader constructor leaking resources
> -------------------------------------------------
>
> Key: MAPREDUCE-1504
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-1504
> Project: Hadoop Map/Reduce
> Issue Type: New Feature
> Reporter: Zheng Shao
>
> When {{SequenceFile.Reader}} constructor throws an {{IOException}} (because the file does not conform to {{SequenceFile}} format), we will have such a problem.
> The caller won't have a pointer to the reader because of the {{IOException}} thrown.
> We should call {{in.close()}} inside the constructor to make sure that we don't leak resources (file descriptor and connection to the data node, etc).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.