[
https://issues.apache.org/jira/browse/FLINK-2511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ufuk Celebi resolved FLINK-2511.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.10
Good catch! Thanks!
Fixed via d8d0748.
Since we now require Java 7 for all releases >= 0.10.0, I've used the now
available try-with-resources.
> Potential resource leak due to unclosed InputStream in
> FlinkZooKeeperQuorumPeer.java
> ------------------------------------------------------------------------------------
>
> Key: FLINK-2511
> URL: https://issues.apache.org/jira/browse/FLINK-2511
> Project: Flink
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Ufuk Celebi
> Fix For: 0.10
>
>
> The InputStream created around line 82 is not closed:
> {code}
> InputStream inStream = new FileInputStream(new
> File(zkConfigFile));
> {code}
> This may lead to resource leak.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)