hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-5352) Server#initLog() doesn't close InputStream
Date Sat, 12 Oct 2013 00:02:42 GMT

     [ https://issues.apache.org/jira/browse/HDFS-5352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu updated HDFS-5352:
-------------------------

    Status: Patch Available  (was: Open)

> Server#initLog() doesn't close InputStream
> ------------------------------------------
>
>                 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
>         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