Github user rxin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16887#discussion_r100552370
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
    @@ -2207,20 +2207,22 @@ class SparkContext(config: SparkConf) extends 
Logging {
        * Cancel a given job if it's scheduled or running.
        *
        * @param jobId the job ID to cancel
    +   * @param reason optional reason for cancellation
        * @note Throws `InterruptedException` if the cancel message cannot be 
sent
        */
    -  def cancelJob(jobId: Int) {
    -    dagScheduler.cancelJob(jobId)
    +  def cancelJob(jobId: Int, reason: String = "") {
    --- End diff --
    
    actually you need to define a new function with two parameters and keep the 
old one to maintain binary compatibility.



---
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]

Reply via email to