hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sangjin Lee (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11500) InputStream is left unclosed in ApplicationClassLoader
Date Tue, 31 Mar 2015 15:27:53 GMT

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

Sangjin Lee commented on HADOOP-11500:
--------------------------------------

Hi [~shurong.mai], if you want to backport this to 2.6 you'd need to use an explicit close()
call at the end.

> InputStream is left unclosed in ApplicationClassLoader
> ------------------------------------------------------
>
>                 Key: HADOOP-11500
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11500
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.6.0
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>             Fix For: 2.7.0
>
>         Attachments: hadoop-11500-001.patch, hadoop-11500-002.patch
>
>
> {code}
>     InputStream is = null;
>     try {
>       is = ApplicationClassLoader.class.getClassLoader().
>           getResourceAsStream(PROPERTIES_FILE);
> {code}
> The InputStream is not closed in the static block.



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

Mime
View raw message