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-10365) BufferedOutputStream in FileUtil#unpackEntries() should be closed in finally block
Date Tue, 01 Sep 2015 17:50:47 GMT

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

Hudson commented on HADOOP-10365:
---------------------------------

FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #336 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/336/])
HADOOP-10365. BufferedOutputStream in FileUtil#unpackEntries() should be closed in finally
block. Contributed by Kiran Kumar M R and Sanghyun Yun. (ozawa: rev dd149adeace8727864371c5a1484c6534f8b450b)
* hadoop-common-project/hadoop-common/CHANGES.txt
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java


> BufferedOutputStream in FileUtil#unpackEntries() should be closed in finally block
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-10365
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10365
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>            Reporter: Ted Yu
>            Assignee: Kiran Kumar M R
>            Priority: Minor
>              Labels: BB2015-05-RFC
>             Fix For: 2.8.0, 2.7.2, 3.0.0
>
>         Attachments: HADOOP-10365.2.patch, HADOOP-10365.3.patch, HADOOP-10365.4.patch,
HADOOP-10365.5.patch, HADOOP-10365.6.patch, HADOOP-10365.6.patch, HADOOP-10365.patch
>
>
> {code}
>     BufferedOutputStream outputStream = new BufferedOutputStream(
>         new FileOutputStream(outputFile));
> ...
>     outputStream.flush();
>     outputStream.close();
> {code}
> outputStream should be closed in finally block.



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

Mime
View raw message