You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Tsuyoshi Ozawa (JIRA)" <ji...@apache.org> on 2015/07/15 17:41:05 UTC

[jira] [Commented] (HADOOP-10615) FileInputStream in JenkinsHash#main() is never closed

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

Tsuyoshi Ozawa commented on HADOOP-10615:
-----------------------------------------

Hi [~airbots], thank you for taking this issue. Could you use try-with-resources statement instead of IOUtils.closeStream?

> FileInputStream in JenkinsHash#main() is never closed
> -----------------------------------------------------
>
>                 Key: HADOOP-10615
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10615
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Chen He
>            Priority: Minor
>              Labels: BB2015-05-TBR
>         Attachments: HADOOP-10615-2.patch, HADOOP-10615.patch
>
>
> {code}
>     FileInputStream in = new FileInputStream(args[0]);
> {code}
> The above FileInputStream is not closed upon exit of main.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)