You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by aarondav <gi...@git.apache.org> on 2014/04/24 04:43:51 UTC

[GitHub] spark pull request: Update Java api for setJobGroup with interrupt...

GitHub user aarondav opened a pull request:

    https://github.com/apache/spark/pull/522

    Update Java api for setJobGroup with interruptOnCancel

    Also adds a unit test.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aarondav/spark cancel2

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/522.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 #522
    
----
commit 65b33d84b2a8be67e8c738792948684f8907f32a
Author: Aaron Davidson <aa...@databricks.com>
Date:   2014-04-24T01:44:12Z

    Add unit test for Thread interruption on cancellation

commit 565c2532b4ed8c4a03f3ba4af74952a460b9bf9a
Author: Aaron Davidson <aa...@databricks.com>
Date:   2014-04-24T02:24:40Z

    Update Java api for setJobGroup with interruptOnCancel

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: Update Java api for setJobGroup with interrupt...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/522#issuecomment-41239291
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: Update Java api for setJobGroup with interrupt...

Posted by rxin <gi...@git.apache.org>.
Github user rxin commented on the pull request:

    https://github.com/apache/spark/pull/522#issuecomment-41242640
  
    lgtm


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: Update Java api for setJobGroup with interrupt...

Posted by aarondav <gi...@git.apache.org>.
Github user aarondav commented on a diff in the pull request:

    https://github.com/apache/spark/pull/522#discussion_r11934025
  
    --- Diff: core/src/test/scala/org/apache/spark/JobCancellationSuite.scala ---
    @@ -101,18 +101,50 @@ class JobCancellationSuite extends FunSuite with ShouldMatchers with BeforeAndAf
           sc.parallelize(1 to 10000, 2).map { i => Thread.sleep(10); i }.count()
         }
     
    +    // Block until both tasks of job A have started and cancel job A.
    --- End diff --
    
    The diff here is really dumb, I just put the sem.acquire(2) above the creation of jobB in this test ("job group") and then copied it to make my test ("job group with interruption"). The latter test is only different in that I sleep for an extraordinarily long amount of time, so that cancellation must interrupt the sleep or else make Patrick angry.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: Update Java api for setJobGroup with interrupt...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/522


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: Update Java api for setJobGroup with interrupt...

Posted by rxin <gi...@git.apache.org>.
Github user rxin commented on the pull request:

    https://github.com/apache/spark/pull/522#issuecomment-41242815
  
    Merged.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: Update Java api for setJobGroup with interrupt...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/522#issuecomment-41237670
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: Update Java api for setJobGroup with interrupt...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/522#issuecomment-41239292
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14420/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: Update Java api for setJobGroup with interrupt...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/522#issuecomment-41237663
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---