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)

Reply via email to