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:
parent
2f78a87b50
commit
90ab1628d8
|
@ -310,6 +310,8 @@ Release 0.20.0 - Unreleased
|
|||
(Doğacan Güney via Stack)
|
||||
HBASE-1732 Flag to disable regionserver restart
|
||||
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
|
||||
HBASE-1089 Add count of regions on filesystem to master UI; add percentage
|
||||
|
|
|
@ -286,7 +286,7 @@ public class HBaseClient {
|
|||
* a header to the server and starts
|
||||
* the connection thread that waits for responses.
|
||||
*/
|
||||
protected synchronized void setupIOstreams() {
|
||||
protected synchronized void setupIOstreams() throws IOException {
|
||||
if (socket != null || shouldCloseConnection.get()) {
|
||||
return;
|
||||
}
|
||||
|
@ -328,6 +328,8 @@ public class HBaseClient {
|
|||
} catch (IOException e) {
|
||||
markClosed(e);
|
||||
close();
|
||||
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue