Skip to content

Commit

Permalink
[SPARK-10722] RDDBlockId not found in driver-heartbeater
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjscott committed May 20, 2016
1 parent 15de51c commit 9ea4dca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/scala/org/apache/spark/executor/Executor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ private[spark] class Executor(
// JobProgressListener will hold an reference of it during
// onExecutorMetricsUpdate(), then JobProgressListener can not see
// the changes of metrics any more, so make a deep copy of it
val copiedMetrics = Utils.deserialize[TaskMetrics](Utils.serialize(metrics))
val copiedMetrics = Utils.deserialize[TaskMetrics](
Utils.serialize(metrics),
Utils.getContextOrSparkClassLoader)
tasksMetrics += ((taskRunner.taskId, copiedMetrics))
} else {
// It will be copied by serialization
Expand Down

0 comments on commit 9ea4dca

Please sign in to comment.