panbingkun opened a new pull request, #37292: URL: https://github.com/apache/spark/pull/37292
### What changes were proposed in this pull request? The pr follow https://github.com/apache/spark/pull/37245 StageFailed event should attach with the root cause ### Why are the changes needed? By carefully investigating the root cause of the issue: https://issues.apache.org/jira/browse/SPARK-39622, I found the root cause of test failure(https://issues.apache.org/jira/browse/SPARK-39622): StageFailed don't attach the root failed reason(from executor) when OutputCommitCoordinator execute 'taskCompleted', the 'reason' is ignored. Scenario 1: receive TaskSetFailed (Success) > InsertIntoHadoopFsRelationCommand > FileFormatWriter.write > _**handleTaskSetFailed**_ (**attach root cause**) > abortStage > failJobAndIndependentStages > SparkListenerJobEnd Scenario 1: receive StageFailed (Fail) > InsertIntoHadoopFsRelationCommand > FileFormatWriter.write > _**handleStageFailed**_ (**don't attach root cause**) > abortStage > failJobAndIndependentStages > SparkListenerJobEnd ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manual run UT & Pass GitHub Actions -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
