Imran Rashid created SPARK-17623:

             Summary: Failed tasks end reason is always a TaskFailedReason, 
types should reflect this
                 Key: SPARK-17623
             Project: Spark
          Issue Type: Improvement
          Components: Scheduler, Spark Core
    Affects Versions: 2.0.0
            Reporter: Imran Rashid
            Assignee: Imran Rashid
            Priority: Minor

Minor code cleanup.  In TaskResultGetter, enqueueFailedTask currently 
deserializes the result as a TaskEndReason.  But the type is actually more 
specific, its a TaskFailedReason.  This just leads to more blind casting later 
on -- it would be more clear if the msg was cast to the right type immediately, 
so method parameter types could be tightened.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to