GitHub user ala opened a pull request:
https://github.com/apache/spark/pull/16887
[SPARK-19549] Allow providing reason for stage/job cancelling
## What changes were proposed in this pull request?
This change add an optional argument to `SparkContext.cancelStage()` and
`SparkContext.cancelJob()` functions, which allows the caller to provide exact
reason for the cancellation.
## How was this patch tested?
Adds unit test.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ala/spark cancel
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16887.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 #16887
----
commit 4d8cec59add213d74d59c1cfede7a347520fdb98
Author: Ala Luszczak <[email protected]>
Date: 2017-02-09T13:24:45Z
Cancel with reason.
commit 8b023d40f5acbdaad43d4418c51e559ac4c93db7
Author: Ala Luszczak <[email protected]>
Date: 2017-02-10T14:19:44Z
Reasons for cancelling.
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]