GitHub user WangTaoTheTonic opened a pull request: https://github.com/apache/spark/pull/11692
[SPARK-13852]handle the InterruptedException caused by YARN HA switch when sc stops, it will interrupt thread using to monitor app status. the thread will throw an InterruptedException if YARN is switch as there is a sleep method in retry logic. If YARN is switch between active and standby, sc.stop will return YarnApplicationState.FAILED as the InterruptedException is not caught. You can merge this pull request into a Git repository by running: $ git pull https://github.com/WangTaoTheTonic/spark SPARK-13852 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/11692.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 #11692 ---- commit 9d6de234b2c54c94b9fa261d78e5471facb3b6cd Author: WangTaoTheTonic <wangtao...@huawei.com> Date: 2016-03-14T08:29:05Z handle the InterruptedException caused by YARN HA switch ---- --- 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. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org