jiangxb1987 opened a new pull request, #40592:
URL: https://github.com/apache/spark/pull/40592

   
   
   ### What changes were proposed in this pull request?
   The PR fixes a bug that SparkListenerTaskStart can have `stageAttemptId = 
-1` when a task is launched after the stage is cancelled. Actually, we should 
use the information within `Task` to update the `stageAttemptId` field.
   
   
   ### Why are the changes needed?
   -1 is not a legal stageAttemptId value, thus it can lead to unexpected 
problem if a subscriber try to parse the stage information from the 
SparkListenerTaskStart event.
   
   ### Does this PR introduce _any_ user-facing change?
   No, it's a bugfix.
   
   
   ### How was this patch tested?
   Manually verified.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to