HBASE-22477 Throwing exception when meta region is not in OPEN state in client registry may crash a master
This commit is contained in:
parent
963cb45f1c
commit
668f543cdc
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue