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) {
|
} catch (IOException ie) {
|
||||||
throw new ServiceException(ie);
|
throw new ServiceException(ie);
|
||||||
} finally {
|
} finally {
|
||||||
if (regionServer.metricsRegionServer != null) {
|
if (regionServer.metricsRegionServer != null && region != null) {
|
||||||
regionServer.metricsRegionServer.updateGet(
|
regionServer.metricsRegionServer.updateGet(
|
||||||
region.getTableDesc().getTableName(), EnvironmentEdgeManager.currentTime() - before);
|
region.getTableDesc().getTableName(), EnvironmentEdgeManager.currentTime() - before);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user