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