[
https://issues.apache.org/jira/browse/ZOOKEEPER-1186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121432#comment-13121432
]
Stepan Koltsov commented on ZOOKEEPER-1186:
-------------------------------------------
Yes, looks like it is a duplicate of ZOOKEEPER-1100, thanks.
> ZooKeeper client seems to hang quietly on OutOfMemoryError
> ----------------------------------------------------------
>
> Key: ZOOKEEPER-1186
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1186
> Project: ZooKeeper
> Issue Type: Bug
> Components: java client
> Affects Versions: 3.3.3
> Reporter: Stepan Koltsov
>
> ZooKeeper client seems to hang quietly on OutOfMemoryError.
> Look at code of ClientCnxn.SendThread.run:
> {code}
> void run() {
> while (zooKeeper.state.isAlive()) {
> try {
> ...
> } catch (Exception e) {
> // handle exception and restart
> }
> }
> ...
> }
> {code}
> If OutOfMemoryError happens somewhere inside of try block, thread just exits
> and ZooKeeper hangs.
> Client should handle any Throwable same way it handles Exception.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira