Skip to content

Commit 9ea4dca

Browse files
committed
[SPARK-10722] RDDBlockId not found in driver-heartbeater
1 parent 15de51c commit 9ea4dca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/scala/org/apache/spark/executor/Executor.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,9 @@ private[spark] class Executor(
434434
// JobProgressListener will hold an reference of it during
435435
// onExecutorMetricsUpdate(), then JobProgressListener can not see
436436
// the changes of metrics any more, so make a deep copy of it
437-
val copiedMetrics = Utils.deserialize[TaskMetrics](Utils.serialize(metrics))
437+
val copiedMetrics = Utils.deserialize[TaskMetrics](
438+
Utils.serialize(metrics),
439+
Utils.getContextOrSparkClassLoader)
438440
tasksMetrics += ((taskRunner.taskId, copiedMetrics))
439441
} else {
440442
// It will be copied by serialization

0 commit comments

Comments
 (0)