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:20:54 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 7ab78d9dd -> 24cf287df


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/24cf287d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/24cf287d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/24cf287d

Branch: refs/heads/branch-1
Commit: 24cf287df44d1b6d84d5f14fbf5cf254f3df3bcb
Parents: 7ab78d9
Author: stack <stack@apache.org>
Authored: Wed Jul 8 17:20:05 2015 -0700
Committer: stack <stack@apache.org>
Committed: Wed Jul 8 17:20:23 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/24cf287d/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