HBASE-20785 NPE getting metrics in PE testing scans

This commit is contained in:
Michael Stack 2018-06-25 12:04:47 -07:00
parent 4ba2abf43b
commit 7fad1e52a3
1 changed files with 1 additions and 0 deletions

View File

@ -1189,6 +1189,7 @@ public class PerformanceEvaluation extends Configured implements Tool {
}
void updateScanMetrics(final ScanMetrics metrics) {
if (metrics == null) return;
Map<String,Long> metricsMap = metrics.getMetricsMap();
Long rpcCalls = metricsMap.get(ScanMetrics.RPC_CALLS_METRIC_NAME);
if (rpcCalls != null) {