cloud-fan commented on a change in pull request #27115:
[SPARK-30440][CORE][TESTS] Flaky test:
org.apache.spark.scheduler.TaskSetManagerSuite
URL: https://github.com/apache/spark/pull/27115#discussion_r364205877
##########
File path: core/src/test/scala/org/apache/spark/scheduler/FakeTask.scala
##########
@@ -36,34 +36,74 @@ class FakeTask(
override def preferredLocations: Seq[TaskLocation] = prefLocs
}
+class FakeLongTasks(
Review comment:
I don't think there will be many duplications: we just create a task array
and put it in TaskSet
```
Array.tabulate[Task[_]](numTasks)(new FakeLongTasks(_))
...
class FakeLongTasks(partitionId: Int)
extends Task[Int](0, 0, partitionId, new Properties,
SparkEnv.get.closureSerializer.newInstance().serialize(TaskMetrics.registered).array(),
false) ...
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]