HBASE-16359 Addendum fixes TestZKBasedOpenCloseRegion
This commit is contained in:
parent
00f6af2e85
commit
b1c60940da
|
@ -1599,6 +1599,11 @@ public class RSRpcServices implements HBaseRPCErrorHandler,
|
|||
}
|
||||
}
|
||||
LOG.info("Open " + region.getRegionNameAsString());
|
||||
htd = htds.get(region.getTable());
|
||||
if (htd == null) {
|
||||
htd = regionServer.tableDescriptors.get(region.getTable());
|
||||
htds.put(region.getTable(), htd);
|
||||
}
|
||||
|
||||
final Boolean previous = regionServer.regionsInTransitionInRS.putIfAbsent(
|
||||
region.getEncodedNameAsBytes(), Boolean.TRUE);
|
||||
|
@ -1641,11 +1646,6 @@ public class RSRpcServices implements HBaseRPCErrorHandler,
|
|||
tmpRegions);
|
||||
}
|
||||
}
|
||||
htd = htds.get(region.getTable());
|
||||
if (htd == null) {
|
||||
htd = regionServer.tableDescriptors.get(region.getTable());
|
||||
htds.put(region.getTable(), htd);
|
||||
}
|
||||
if (htd == null) {
|
||||
throw new IOException("Missing table descriptor for " + region.getEncodedName());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue