hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject hbase git commit: HBASE-13454 SecureClient#setupIOStreams should handle all Exceptions. (cuijianwei)
Date Tue, 16 Jun 2015 20:03:54 GMT
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 <larsh@apache.org>
Authored: Tue Jun 16 13:03:46 2015 -0700
Committer: Lars Hofhansl <larsh@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();
 


Mime
View raw message