hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-13337 Table regions are not assigning back, after restarting all regionservers at once (Samir Ahmic)
Date Thu, 09 Jul 2015 00:21:33 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 5a11c80aa -> 035d882c7


HBASE-13337 Table regions are not assigning back, after restarting all regionservers at once
(Samir Ahmic)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/035d882c
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/035d882c
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/035d882c

Branch: refs/heads/branch-1.2
Commit: 035d882c7b77669c931cf5090bace2e1ce1c5c6c
Parents: 5a11c80
Author: stack <stack@apache.org>
Authored: Wed Jul 8 17:20:05 2015 -0700
Committer: stack <stack@apache.org>
Committed: Wed Jul 8 17:21:13 2015 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/ipc/AsyncRpcClient.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/035d882c/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/AsyncRpcClient.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/AsyncRpcClient.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/AsyncRpcClient.java
index 005f03c..a84cc1a 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/AsyncRpcClient.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/AsyncRpcClient.java
@@ -360,7 +360,7 @@ public class AsyncRpcClient extends AbstractRpcClient {
         throw new StoppedRpcClientException();
       }
       rpcChannel = connections.get(hashCode);
-      if (rpcChannel == null) {
+      if (rpcChannel == null || !rpcChannel.isAlive()) {
         rpcChannel = new AsyncRpcChannel(this.bootstrap, this, ticket, serviceName, location);
         connections.put(hashCode, rpcChannel);
       }


Mime
View raw message