hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsuyoshi Ozawa (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10615) FileInputStream in JenkinsHash#main() is never closed
Date Wed, 15 Jul 2015 15:41:05 GMT

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

Mime
View raw message