HBASE-16359 NullPointerException in RSRpcServices.openRegion()
This commit is contained in:
parent
7a62076ae4
commit
00f6af2e85
|
@ -1599,11 +1599,6 @@ 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);
|
||||
|
@ -1646,6 +1641,14 @@ 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());
|
||||
}
|
||||
// If there is no action in progress, we can submit a specific handler.
|
||||
// Need to pass the expected version in the constructor.
|
||||
if (region.isMetaRegion()) {
|
||||
|
|
Loading…
Reference in New Issue