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] [Created] (HDFS-5750) JHLogAnalyzer#parseLogFile() should close stm upon return
Date Thu, 09 Jan 2014 21:17:51 GMT
Ted Yu created HDFS-5750:
----------------------------

             Summary: JHLogAnalyzer#parseLogFile() should close stm upon return
                 Key: HDFS-5750
                 URL: https://issues.apache.org/jira/browse/HDFS-5750
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


stm is assigned to in
But stm may point to another InputStream :
{code}
        if(compressionClass != null) {
          CompressionCodec codec = (CompressionCodec)
            ReflectionUtils.newInstance(compressionClass, new Configuration());
          in = codec.createInputStream(stm);
{code}
stm should be closed in the finally block.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message