hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5352) Server#initLog() doesn't close InputStream in httpfs
Date Tue, 15 Oct 2013 14:16:46 GMT

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

Hudson commented on HDFS-5352:
------------------------------

FAILURE: Integrated in Hadoop-Mapreduce-trunk #1579 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1579/])
HDFS-5352. Server#initLog() doesn't close InputStream in httpfs. Contributed by Ted Yu. (jing9:
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1532158)
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/server/Server.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt


> Server#initLog() doesn't close InputStream in httpfs
> ----------------------------------------------------
>
>                 Key: HDFS-5352
>                 URL: https://issues.apache.org/jira/browse/HDFS-5352
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>            Priority: Minor
>             Fix For: 2.3.0
>
>         Attachments: hdfs-5352.patch
>
>
> Here is related code snippet in hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/server/Server.java:
> {code}
>       Properties props = new Properties();
>       try {
>         InputStream is = getResource(DEFAULT_LOG4J_PROPERTIES);
>         props.load(is);
>       } catch (IOException ex) {
>         throw new ServerException(ServerException.ERROR.S03, DEFAULT_LOG4J_PROPERTIES,
ex.getMessage(), ex);
>       }
> {code}
> is should be closed after loading.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message