flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Ewen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLINK-2322) Unclosed stream may leak resource
Date Mon, 03 Aug 2015 19:00:05 GMT

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

Stephan Ewen resolved FLINK-2322.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 0.10

Fixed in 0693c92bdda655e1fbce232038909a7c2a385a22

Thank you for the patch!

> 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
>              Labels: starter
>             Fix For: 0.10
>
>
> In UdfAnalyzerUtils.java :
> {code}
>         ClassReader cr = new ClassReader(Thread.currentThread().getContextClassLoader()
>             .getResourceAsStream(internalClassName.replace('.', '/') + ".class"));
> {code}
> The stream returned by getResourceAsStream() should be closed upon exit of findMethodNode()
> In ParameterTool#fromPropertiesFile():
> {code}
>     props.load(new FileInputStream(propertiesFile));
> {code}
> The FileInputStream should be closed before returning.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message