You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Stepan Koltsov (JIRA)" <ji...@apache.org> on 2011/09/15 15:23:08 UTC

[jira] [Created] (ZOOKEEPER-1186) ZooKeeper client seems to hang quietly on OutOfMemoryError

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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (ZOOKEEPER-1186) ZooKeeper client seems to hang quietly on OutOfMemoryError

Posted by "Camille Fournier (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Camille Fournier resolved ZOOKEEPER-1186.
-----------------------------------------

    Resolution: Duplicate
    
> 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

        

[jira] [Commented] (ZOOKEEPER-1186) ZooKeeper client seems to hang quietly on OutOfMemoryError

Posted by "Rakesh R (Commented) (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Commented] (ZOOKEEPER-1186) ZooKeeper client seems to hang quietly on OutOfMemoryError

Posted by "Stepan Koltsov (Commented) (JIRA)" <ji...@apache.org>.
    [ 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