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

    https://github.com/apache/spark/pull/1329#discussion_r14664065
  
    --- Diff: core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala 
---
    @@ -768,6 +768,10 @@ class DAGScheduler(
               abortStage(stage, "Task not serializable: " + e.toString)
               runningStages -= stage
               return
    +        case e: Throwable => // Other exceptions, such as 
IllegalArgumentException from Kryo.
    +          abortStage(stage, "Task serialization failed: " + e.toString)
    --- End diff --
    
    In the prior case, of NotSerializableException, the error message was 
likely sufficient. However, since we're dealing with arbitrary exceptions here, 
the user may need to actually see the full stack trace to understand what's 
going on. Maybe something like:
    
    ```scala
    abortStage(stage, s"Task serialization failed: 
$e\n${e.getStackTraceString}")
    ```


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

Reply via email to