hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng Shao (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (MAPREDUCE-1504) SequenceFile.Reader constructor leaking resources
Date Sun, 21 Feb 2010 08:20:27 GMT

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

View raw message