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

Rakesh R commented on ZOOKEEPER-1186:
-------------------------------------

Hi Stepan,

ZOOKEEPER-1100 is also talking about the "java.lang.Error" on 
ClientCnxn.SendThread, which makes ZooKeeper client hangs forever. (Affected 
versions also same 3.3.3 in both the issues)

Can we duplicate this issue to ZOOKEEPER-1100? Any objections?

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

        

Reply via email to