This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/master by this push:
     new 1b39140  HBASE-22477 Throwing exception when meta region is not in 
OPEN state in client registry may crash a master
1b39140 is described below

commit 1b3914067e3e0d933e2ad7fd0d5601b96b01a17f
Author: zhangduo <[email protected]>
AuthorDate: Sat Jun 8 14:06:38 2019 +0800

    HBASE-22477 Throwing exception when meta region is not in OPEN state in 
client registry may crash a master
---
 .../src/main/java/org/apache/hadoop/hbase/client/ZKAsyncRegistry.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ZKAsyncRegistry.java
 
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ZKAsyncRegistry.java
index efeb887..36fa6bb 100644
--- 
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ZKAsyncRegistry.java
+++ 
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ZKAsyncRegistry.java
@@ -158,9 +158,7 @@ class ZKAsyncRegistry implements AsyncRegistry {
           }
           Pair<RegionState.State, ServerName> stateAndServerName = 
getStateAndServerName(proto);
           if (stateAndServerName.getFirst() != RegionState.State.OPEN) {
-            future.completeExceptionally(
-              new IOException("Meta region is in state " + 
stateAndServerName.getFirst()));
-            return;
+            LOG.warn("Meta region is in state " + 
stateAndServerName.getFirst());
           }
           locs[DEFAULT_REPLICA_ID] = new HRegionLocation(
             getRegionInfoForDefaultReplica(FIRST_META_REGIONINFO), 
stateAndServerName.getSecond());

Reply via email to