commit 018fc3f62501722bc9caf63d5031e37a6c00415d Author: Todd Lipcon Date: Sun Apr 25 10:08:13 2010 -0700 HBASE-2487. Unchecked exceptions reciving IPC responses orphan clients. This is our version of HADOOP-6723. diff --git src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java index f23c957..cdce106 100644 --- src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java +++ src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java @@ -446,10 +446,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())