hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10689) InputStream is not closed in AzureNativeFileSystemStore#retrieve()
Date Fri, 20 Jun 2014 18:37:29 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-10689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14039160#comment-14039160
] 

Hudson commented on HADOOP-10689:
---------------------------------

SUCCESS: Integrated in Hadoop-trunk-Commit #5743 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/5743/])
HADOOP-10689. InputStream is not closed in AzureNativeFileSystemStore#retrieve(). Contributed
by Chen He. (cnauroth: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1604233)
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/AzureNativeFileSystemStore.java


> InputStream is not closed in AzureNativeFileSystemStore#retrieve()
> ------------------------------------------------------------------
>
>                 Key: HADOOP-10689
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10689
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: tools
>    Affects Versions: 3.0.0
>            Reporter: Ted Yu
>            Assignee: Chen He
>            Priority: Minor
>             Fix For: 3.0.0
>
>         Attachments: HADOOP-10689.patch
>
>
> In the catch block:
> {code}
>         if(in != null){
>           inDataStream.close();
>         }
> {code}
> We check against in but try to close inDataStream which should have been closed by the
if statement above.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message