Repository: spark Updated Branches: refs/heads/master 7c08eb6d6 -> 772060d09
[SPARK-24704][WEBUI] Fix the order of stages in the DAG graph ## What changes were proposed in this pull request? Before:  After:  ## How was this patch tested? Manual tests. Author: Stan Zhai <[email protected]> Closes #21680 from stanzhai/fix-dag-graph. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/772060d0 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/772060d0 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/772060d0 Branch: refs/heads/master Commit: 772060d0940a97d89807befd682a70ae82e83ef4 Parents: 7c08eb6 Author: Stan Zhai <[email protected]> Authored: Wed Jul 4 10:12:36 2018 +0200 Committer: Herman van Hovell <[email protected]> Committed: Wed Jul 4 10:12:36 2018 +0200 ---------------------------------------------------------------------- core/src/main/scala/org/apache/spark/status/AppStatusStore.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/772060d0/core/src/main/scala/org/apache/spark/status/AppStatusStore.scala ---------------------------------------------------------------------- diff --git a/core/src/main/scala/org/apache/spark/status/AppStatusStore.scala b/core/src/main/scala/org/apache/spark/status/AppStatusStore.scala index 688f25a..e237281 100644 --- a/core/src/main/scala/org/apache/spark/status/AppStatusStore.scala +++ b/core/src/main/scala/org/apache/spark/status/AppStatusStore.scala @@ -471,7 +471,7 @@ private[spark] class AppStatusStore( def operationGraphForJob(jobId: Int): Seq[RDDOperationGraph] = { val job = store.read(classOf[JobDataWrapper], jobId) - val stages = job.info.stageIds + val stages = job.info.stageIds.sorted stages.map { id => val g = store.read(classOf[RDDOperationGraphWrapper], id).toRDDOperationGraph() --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
