HBASE-1604 HBaseClient.getConnection() may return a broken connection without throwing an exception

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@800157 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-08-02 23:28:20 +00:00
parent 2f78a87b50
commit 90ab1628d8
2 changed files with 5 additions and 1 deletions

View File

@ -310,6 +310,8 @@ Release 0.20.0 - Unreleased
(Doğacan Güney via Stack) (Doğacan Güney via Stack)
HBASE-1732 Flag to disable regionserver restart HBASE-1732 Flag to disable regionserver restart
HBASE-1727 HTD and HCD versions need update HBASE-1727 HTD and HCD versions need update
HBASE-1604 HBaseClient.getConnection() may return a broken connection
without throwing an exception (Eugene Kirpichov via Stack)
IMPROVEMENTS IMPROVEMENTS
HBASE-1089 Add count of regions on filesystem to master UI; add percentage HBASE-1089 Add count of regions on filesystem to master UI; add percentage

View File

@ -286,7 +286,7 @@ public class HBaseClient {
* a header to the server and starts * a header to the server and starts
* the connection thread that waits for responses. * the connection thread that waits for responses.
*/ */
protected synchronized void setupIOstreams() { protected synchronized void setupIOstreams() throws IOException {
if (socket != null || shouldCloseConnection.get()) { if (socket != null || shouldCloseConnection.get()) {
return; return;
} }
@ -328,6 +328,8 @@ public class HBaseClient {
} catch (IOException e) { } catch (IOException e) {
markClosed(e); markClosed(e);
close(); close();
throw e;
} }
} }