[
https://issues.apache.org/jira/browse/ZOOKEEPER-2218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tang Xinye resolved ZOOKEEPER-2218.
-----------------------------------
Resolution: Fixed
Release Note: Place the close method in the finally clause, so we can
ensure it always runs regardless of how the method exits.
Issue resolved by pull request https://github.com/apache/zookeeper/pull/36
> Close IO Streams in finally block
> ---------------------------------
>
> Key: ZOOKEEPER-2218
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2218
> Project: ZooKeeper
> Issue Type: Bug
> Reporter: Tang Xinye
> Priority: Critical
>
> The problem here is that if an exception is thrown during the read process
> the method will exit without closing the stream and hence without releasing
> the file system resources, it may run out of resources before it does run.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)