You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Fabian Hueske (JIRA)" <ji...@apache.org> on 2015/10/26 22:56:27 UTC

[jira] [Closed] (FLINK-2827) Potential resource leak in TwitterSource#loadAuthenticationProperties()

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

Fabian Hueske closed FLINK-2827.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 1.0

Fixed with 6a8e90b3621bb96304b325a4ae8f7f5575ec909a

> Potential resource leak in TwitterSource#loadAuthenticationProperties()
> -----------------------------------------------------------------------
>
>                 Key: FLINK-2827
>                 URL: https://issues.apache.org/jira/browse/FLINK-2827
>             Project: Flink
>          Issue Type: Bug
>    Affects Versions: 0.10
>            Reporter: Ted Yu
>            Assignee: Saumitra Shahapure
>            Priority: Minor
>              Labels: starter
>             Fix For: 1.0
>
>
> Here is related code:
> {code}
>                 Properties properties = new Properties();
>                 try {
>                         InputStream input = new FileInputStream(authPath);
>                         properties.load(input);
>                         input.close();
>                 } catch (Exception e) {
>                         throw new RuntimeException("Cannot open .properties file: " + authPath, e);
>                 }
> {code}
> If there is exception coming out of properties.load() call, input would be left open.



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