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

    https://github.com/apache/spark/pull/15505#discussion_r95237792
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/TaskDescription.scala ---
    @@ -52,7 +55,36 @@ private[spark] class TaskDescription(
         val addedFiles: Map[String, Long],
         val addedJars: Map[String, Long],
         val properties: Properties,
    -    val serializedTask: ByteBuffer) {
    +    private var serializedTask_ : ByteBuffer,
    +    private var task_ : Task[_] = null) extends  Logging {
    --- End diff --
    
    I wonder if there's any reason to couple the TaskDescription and serialized 
task now?  Since they're deserialized at different points, I wonder if it makes 
sense for LaunchTask to have two arguments: one that's the serialized task and 
one that's the serialized task description (and then to remove task_ and 
serializedTask as members of this class).  Otherwise, the logic of when task_ 
is defined (versus null) and how it's deserialized is somewhat difficult to 
follow.


---
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]

Reply via email to