[ 
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.

Reply via email to