flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-2322) Unclosed stream may leak resource
Date Mon, 06 Jul 2015 23:00:07 GMT
Ted Yu created FLINK-2322:

             Summary: Unclosed stream may leak resource
                 Key: FLINK-2322
                 URL: https://issues.apache.org/jira/browse/FLINK-2322
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu

In UdfAnalyzerUtils.java :
        ClassReader cr = new ClassReader(Thread.currentThread().getContextClassLoader()
            .getResourceAsStream(internalClassName.replace('.', '/') + ".class"));
The stream returned by getResourceAsStream() should be closed upon exit of findMethodNode()

In ParameterTool#fromPropertiesFile():
    props.load(new FileInputStream(propertiesFile));
The FileInputStream should be closed before returning.

This message was sent by Atlassian JIRA

View raw message