Github user kayousterhout commented on a diff in the pull request:
https://github.com/apache/spark/pull/16261#discussion_r92895075
--- Diff: core/src/test/scala/org/apache/spark/scheduler/FakeTask.scala ---
@@ -17,12 +17,20 @@
package org.apache.spark.scheduler
+import java.util.Properties
+
+import org.apache.spark.SparkEnv
import org.apache.spark.TaskContext
+import org.apache.spark.executor.TaskMetrics
class FakeTask(
stageId: Int,
partitionId: Int,
- prefLocs: Seq[TaskLocation] = Nil) extends Task[Int](stageId, 0,
partitionId) {
+ prefLocs: Seq[TaskLocation] = Nil,
+ serializedTaskMetrics: Array[Byte] =
+
SparkEnv.get.closureSerializer.newInstance().serialize(TaskMetrics.registered).array())
+ extends Task[Int](stageId, 0, partitionId, new Properties,
serializedTaskMetrics) {
--- End diff --
why can't the default be used here?
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]