Github user cloud-fan commented on a diff in the pull request: https://github.com/apache/spark/pull/4055#discussion_r23434739 --- Diff: core/src/test/scala/org/apache/spark/scheduler/DAGSchedulerSuite.scala --- @@ -540,6 +540,52 @@ class DAGSchedulerSuite extends TestKit(ActorSystem("DAGSchedulerSuite")) with F assertDataStructuresEmpty } + test("Make sure mapStage.pendingtasks is set() " + + "while MapStage.isAvailable is true while stage was retry ") { + val firstRDD = new MyRDD(sc, 6, Nil) + val firstShuffleDep = new ShuffleDependency(firstRDD, null) + val firstShuyffleId = firstShuffleDep.shuffleId + val shuffleMapRdd = new MyRDD(sc, 6, List(firstShuffleDep)) + val shuffleDep = new ShuffleDependency(shuffleMapRdd, null) + val shuffleId = shuffleDep.shuffleId + val reduceRdd = new MyRDD(sc, 2, List(shuffleDep)) + submit(reduceRdd, Array(0, 1)) + complete(taskSets(0), Seq( + (Success, makeMapStatus("hostB", 1)), + (Success, makeMapStatus("hostB", 2)), + (Success, makeMapStatus("hostC", 3)), + (Success, makeMapStatus("hostB", 4)), + (Success, makeMapStatus("hostB", 5)), + (Success, makeMapStatus("hostC", 6)) + )) + complete(taskSets(1), Seq( + (Success, makeMapStatus("hostA", 1)), + (Success, makeMapStatus("hostB", 2)), + (Success, makeMapStatus("hostA", 1)), + (Success, makeMapStatus("hostB", 2)), + (Success, makeMapStatus("hostA", 1)) --- End diff -- `taskSets(1)` should have 6 tasks. Did you leave the last one intentionallyï¼
--- 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