GitHub user advancedxy opened a pull request: https://github.com/apache/spark/pull/20082
[SPARK-22897][CORE]: Expose stageAttemptId in TaskContext ## What changes were proposed in this pull request? stageAttemptId added in TaskContext and corresponding construction modification ## How was this patch tested? Added a new test in TaskContextSuite, two cases are tested: 1. Normal case without failure 2. Exception case with resubmitted stages Link to [SPARK-22897](https://issues.apache.org/jira/browse/SPARK-22897) You can merge this pull request into a Git repository by running: $ git pull https://github.com/advancedxy/spark SPARK-22897 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/20082.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #20082 ---- commit 5753ee0d938b507c61c19233f87043396befadc5 Author: Xianjin YE <advancedxy@...> Date: 2017-12-26T11:51:44Z [SPARK-22897][CORE]: Expose stageAttemptId in TaskContext ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org