From 7cd1caa1ecd4983dacc9705468a09d402780721c Mon Sep 17 00:00:00 2001 From: zhangduo Date: Sat, 8 Jun 2019 14:06:38 +0800 Subject: [PATCH] HBASE-22477 Throwing exception when meta region is not in OPEN state in client registry may crash a master --- .../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 efeb887e5ed..36fa6bba754 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 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());