HBASE-2487 Uncaught exceptions in receiving IPC responses orphan clients

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@938279 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-04-27 00:34:46 +00:00
parent 5dccb9751c
commit 983654d271
2 changed files with 10 additions and 3 deletions

View File

@ -291,6 +291,8 @@ Release 0.21.0 - Unreleased
(Todd Lipcon via Stack)
HBASE-2491 master.jsp uses absolute links to table.jsp. This broke when
master.jsp moved under webapps/master(Cristian Ivascu via Stack)
HBASE-2487 Uncaught exceptions in receiving IPC responses orphan clients
(Todd Lipcon via Stack)
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable

View File

@ -449,10 +449,15 @@ public class HBaseClient {
LOG.debug(getName() + ": starting, having connections "
+ connections.size());
while (waitForWork()) {//wait here for work - read or close connection
receiveResponse();
try {
while (waitForWork()) {//wait here for work - read or close connection
receiveResponse();
}
} catch (Throwable t) {
LOG.warn("Unexpected exception receiving call responses", t);
markClosed(new IOException("Unexpected exception receiving call responses", t));
}
close();
if (LOG.isDebugEnabled())