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

    https://github.com/apache/spark/pull/3638#discussion_r22201694
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala ---
    @@ -456,10 +458,19 @@ private[spark] class TaskSetManager(
               }
               // Serialize and return the task
               val startTime = clock.getTime()
    -          // We rely on the DAGScheduler to catch non-serializable 
closures and RDDs, so in here
    -          // we assume the task can be serialized without exceptions.
    -          val serializedTask = Task.serializeWithDependencies(
    -            task, sched.sc.addedFiles, sched.sc.addedJars, ser)
    +          var serializedTask : ByteBuffer = null
    --- End diff --
    
    Minor style nit, but I don't think that this needs to be a `var` since you 
can assign a `try` block to a field; I think you can just write
    
    ```scala
    val serializedTask: ByteBuffer = try {
    
    } catch {
    
    }
    ```
    
    instead.


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