You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2019/07/02 02:45:56 UTC

[hbase] branch branch-2 updated: HBASE-22477 Throwing exception when meta region is not in OPEN state in client registry may crash a master

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

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


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

commit 7cd1caa1ecd4983dacc9705468a09d402780721c
Author: zhangduo <zh...@apache.org>
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());