HBASE-19395 [branch-1] TestEndToEndSplitTransaction.testMasterOpsWhileSplitting fails with NPE

This commit is contained in:
Andrew Purtell 2017-12-01 15:30:16 -08:00
parent 6938720c12
commit ab1d5e05a8
1 changed files with 1 additions and 1 deletions

View File

@ -2267,7 +2267,7 @@ public class RSRpcServices implements HBaseRPCErrorHandler,
} catch (IOException ie) {
throw new ServiceException(ie);
} finally {
if (regionServer.metricsRegionServer != null) {
if (regionServer.metricsRegionServer != null && region != null) {
regionServer.metricsRegionServer.updateGet(
region.getTableDesc().getTableName(), EnvironmentEdgeManager.currentTime() - before);
}