We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15de51c commit 9ea4dcaCopy full SHA for 9ea4dca
core/src/main/scala/org/apache/spark/executor/Executor.scala
@@ -434,7 +434,9 @@ private[spark] class Executor(
434
// JobProgressListener will hold an reference of it during
435
// onExecutorMetricsUpdate(), then JobProgressListener can not see
436
// the changes of metrics any more, so make a deep copy of it
437
- val copiedMetrics = Utils.deserialize[TaskMetrics](Utils.serialize(metrics))
+ val copiedMetrics = Utils.deserialize[TaskMetrics](
438
+ Utils.serialize(metrics),
439
+ Utils.getContextOrSparkClassLoader)
440
tasksMetrics += ((taskRunner.taskId, copiedMetrics))
441
} else {
442
// It will be copied by serialization
0 commit comments