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:22:16 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.1 555c42a3f -> 43397fa9c


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

Branch: refs/heads/branch-1.1
Commit: 43397fa9c2168e36e5c6ba493e09ae820a945550
Parents: 555c42a
Author: stack <stack@apache.org>
Authored: Wed Jul 8 17:20:05 2015 -0700
Committer: stack <stack@apache.org>
Committed: Wed Jul 8 17:22:05 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/43397fa9/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 26d6f18..5162675 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
@@ -355,7 +355,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