GitHub user suyanNone opened a pull request: https://github.com/apache/spark/pull/8923
[SPARK][SPARK-10842]Eliminate create duplicate stage while generate job dag When we traverse RDD, to generate Stage DAG, Spark will skip judge the stage whether it add into shuffleIdToStage in some condition: get shuffleDep from getAncestorShuffleDependency Before: ![before1](https://cloud.githubusercontent.com/assets/9818852/10117739/9e1e8778-6493-11e5-935d-ea32099e94c9.png) ![before2](https://cloud.githubusercontent.com/assets/9818852/10117740/9e20ee46-6493-11e5-95b4-f30df5ac22e1.png) After: ![after](https://cloud.githubusercontent.com/assets/9818852/10117737/9e1864c4-6493-11e5-8541-31ff0ead329a.png) ![after2](https://cloud.githubusercontent.com/assets/9818852/10117738/9e1c8658-6493-11e5-954a-fb00f36f4d3b.png) You can merge this pull request into a Git repository by running: $ git pull https://github.com/suyanNone/spark duplicate Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/8923.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #8923 ---- commit 315887a5267a385d40a47267dcd25664414f1784 Author: hushan <hus...@xiaomi.com> Date: 2015-09-26T13:12:39Z Duplicate stage ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org