HBASE-20785 NPE getting metrics in PE testing scans
This commit is contained in:
parent
4ba2abf43b
commit
7fad1e52a3
|
@ -1189,6 +1189,7 @@ public class PerformanceEvaluation extends Configured implements Tool {
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateScanMetrics(final ScanMetrics metrics) {
|
void updateScanMetrics(final ScanMetrics metrics) {
|
||||||
|
if (metrics == null) return;
|
||||||
Map<String,Long> metricsMap = metrics.getMetricsMap();
|
Map<String,Long> metricsMap = metrics.getMetricsMap();
|
||||||
Long rpcCalls = metricsMap.get(ScanMetrics.RPC_CALLS_METRIC_NAME);
|
Long rpcCalls = metricsMap.get(ScanMetrics.RPC_CALLS_METRIC_NAME);
|
||||||
if (rpcCalls != null) {
|
if (rpcCalls != null) {
|
||||||
|
|
Loading…
Reference in New Issue