From 24cf287df44d1b6d84d5f14fbf5cf254f3df3bcb Mon Sep 17 00:00:00 2001 From: stack Date: Wed, 8 Jul 2015 17:20:05 -0700 Subject: [PATCH] HBASE-13337 Table regions are not assigning back, after restarting all regionservers at once (Samir Ahmic) --- .../main/java/org/apache/hadoop/hbase/ipc/AsyncRpcClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 005f03cefb0..a84cc1a7835 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); }