flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Metzger (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-2322) Unclosed stream may leak resource
Date Wed, 08 Jul 2015 13:43:04 GMT

    [ https://issues.apache.org/jira/browse/FLINK-2322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14618601#comment-14618601
] 

Robert Metzger commented on FLINK-2322:
---------------------------------------

Thank you for reporting these issues.

Are you interested in contributing to Flink? If so, feel free to submit a pull request for
the reported isses.

> 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
>
> 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