}
if (dagStatus.getState() == DAGStatus.State.SUCCEEDED) {
Map<Enum, Long> warningAggMap = new HashMap<Enum, Long>();
DAG dag = runningJob.getDAG();
for (Vertex v : dag.getVertices()) {
TezVertexStats tts = tezStats.getVertexStats(dag.getName(), v.getName());
if (tts == null) {
continue; //vertex groups
}
Map<String, Map<String, Long>> counterGroups = tts.getCounters();
if (counterGroups == null) {
log.warn("Counters are not available for vertex " + v.getName() + ". Not computing warning aggregates.");
} else {
computeWarningAggregate(counterGroups, warningAggMap);
}