HBASE-19395 [branch-1] TestEndToEndSplitTransaction.testMasterOpsWhileSplitting fails with NPE
This commit is contained in:
parent
6938720c12
commit
ab1d5e05a8
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue