You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/01/09 22:17:51 UTC

[jira] [Created] (HDFS-5750) JHLogAnalyzer#parseLogFile() should close stm upon return

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)