Github user witgo commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15505#discussion_r103631249
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/TaskDescription.scala ---
    @@ -52,8 +55,26 @@ private[spark] class TaskDescription(
         val addedFiles: Map[String, Long],
         val addedJars: Map[String, Long],
         val properties: Properties,
    -    val serializedTask: ByteBuffer) {
    -
    +    // Task object corresponding to the TaskDescription. This is only 
defined on the master; on
    +    // the worker, the Task object is handled separately from the 
TaskDescription so that it can
    +    // deserialized after the TaskDescription is deserialized.
    +    @transient private val task: Task[_] = null) extends Logging {
    +
    +  /**
    +   * Serializes the task for this TaskDescription and returns the 
serialized task.
    +   *
    +   * This method should only be used on the master (to serialize a task to 
send to a worker).
    --- End diff --
    
    Done
    



---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to