HBASE-22477 Throwing exception when meta region is not in OPEN state in client registry may crash a master

This commit is contained in:
zhangduo 2019-06-08 14:06:38 +08:00
parent 4157d1e3cd
commit 1b3914067e
1 changed files with 1 additions and 3 deletions

View File

@ -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());