You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by la...@apache.org on 2015/06/16 22:03:54 UTC
hbase git commit: HBASE-13454 SecureClient#setupIOStreams should
handle all Exceptions. (cuijianwei)
Repository: hbase
Updated Branches:
refs/heads/0.94 c9e2d36b2 -> b2fb5b784
HBASE-13454 SecureClient#setupIOStreams should handle all Exceptions. (cuijianwei)
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/b2fb5b78
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/b2fb5b78
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/b2fb5b78
Branch: refs/heads/0.94
Commit: b2fb5b7849966d0c481f416cc847eaada80bafda
Parents: c9e2d36
Author: Lars Hofhansl <la...@apache.org>
Authored: Tue Jun 16 13:03:46 2015 -0700
Committer: Lars Hofhansl <la...@apache.org>
Committed: Tue Jun 16 13:03:46 2015 -0700
----------------------------------------------------------------------
.../main/java/org/apache/hadoop/hbase/ipc/SecureClient.java | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/b2fb5b78/security/src/main/java/org/apache/hadoop/hbase/ipc/SecureClient.java
----------------------------------------------------------------------
diff --git a/security/src/main/java/org/apache/hadoop/hbase/ipc/SecureClient.java b/security/src/main/java/org/apache/hadoop/hbase/ipc/SecureClient.java
index 38ad5aa..721e462 100644
--- a/security/src/main/java/org/apache/hadoop/hbase/ipc/SecureClient.java
+++ b/security/src/main/java/org/apache/hadoop/hbase/ipc/SecureClient.java
@@ -325,7 +325,14 @@ public class SecureClient extends HBaseClient {
start();
return;
}
- } catch (IOException e) {
+ } catch (Throwable t) {
+ failedServers.addToFailedServers(remoteId.address);
+ IOException e;
+ if (t instanceof IOException) {
+ e = (IOException)t;
+ } else {
+ e = new IOException("Could not set up Secure IO Streams", t);
+ }
markClosed(e);
close();