diff --git a/app/controllers/Application.java b/app/controllers/Application.java index a04da0ded..1f3bff60f 100644 --- a/app/controllers/Application.java +++ b/app/controllers/Application.java @@ -1319,7 +1319,7 @@ public static Result restJobGraphData(String jobDefId) { int jobPerfScore = 0; JsonArray stageScores = new JsonArray(); List mrJobsList = Lists.reverse(flowExecIdToJobsMap.get(flowExecPair)); - for (AppResult appResult : flowExecIdToJobsMap.get(flowExecPair)) { + for (AppResult appResult : mrJobsList) { // Each MR job triggered by jobDefId for flowExecId int mrPerfScore = 0;