You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by MaxGekk <gi...@git.apache.org> on 2018/08/30 12:34:52 UTC

[GitHub] spark pull request #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRD...

GitHub user MaxGekk opened a pull request:

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

    [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

    ## What changes were proposed in this pull request?
    
    The commit https://github.com/apache/spark/commit/131ca146ed390cd0109cd6e8c95b61e418507080 replaced Scala parallel collections in `UnionRDD` by `parmap`. The changes cause a deadlock in the `partitions` method if the method is called recursively and number of unions of the top level union is bigger than size of fixed thread pool used in `UnionRDD`. In the PR, I propose to revert Scala parallel collections back since they support nested calls even on fixed thread pools.
    
    ## How was this patch tested?
    
    I added a test which creates 2 levels of unionRDDs wider than fixed thread pool.


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

    $ git pull https://github.com/MaxGekk/spark-1 deadlock-unionrdd

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

    https://github.com/apache/spark/pull/22283.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 #22283
    
----
commit ee8c91ac7de8c2aad66def843d8a9ee0a199d8d1
Author: Maxim Gekk <ma...@...>
Date:   2018-08-30T12:11:39Z

    Test reproduces a deadlock

commit afc2f73101a331d80104ce140c4c8288f6a764b3
Author: Maxim Gekk <ma...@...>
Date:   2018-08-30T12:13:19Z

    Revert "Porting UnionRDD on parmap"
    
    This reverts commit 72cdfeb765cda13ab03ed8515a83fa24657894ac.

commit 8c38ab506ec5444f150ea6a46a5afe067c012f0f
Author: Maxim Gekk <ma...@...>
Date:   2018-08-30T12:21:24Z

    Test reproduces the deadlock in UnionRDD

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22283
  
    **[Test build #95482 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/95482/testReport)** for PR 22283 at commit [`1df1a42`](https://github.com/apache/spark/commit/1df1a424766dd7c8fd12dee5d2a34620e0025326).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

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

    https://github.com/apache/spark/pull/22283
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

Posted by MaxGekk <gi...@git.apache.org>.
Github user MaxGekk commented on the issue:

    https://github.com/apache/spark/pull/22283
  
    jenkins, retest this, please


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

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

    https://github.com/apache/spark/pull/22283
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

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

    https://github.com/apache/spark/pull/22283
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/95469/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

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

    https://github.com/apache/spark/pull/22283
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/95482/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

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

    https://github.com/apache/spark/pull/22283
  
    Can one of the admins verify this patch?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22283
  
    **[Test build #95469 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/95469/testReport)** for PR 22283 at commit [`8c38ab5`](https://github.com/apache/spark/commit/8c38ab506ec5444f150ea6a46a5afe067c012f0f).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22283
  
    **[Test build #95495 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/95495/testReport)** for PR 22283 at commit [`1df1a42`](https://github.com/apache/spark/commit/1df1a424766dd7c8fd12dee5d2a34620e0025326).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22283
  
    **[Test build #95469 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/95469/testReport)** for PR 22283 at commit [`8c38ab5`](https://github.com/apache/spark/commit/8c38ab506ec5444f150ea6a46a5afe067c012f0f).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22283
  
    **[Test build #95495 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/95495/testReport)** for PR 22283 at commit [`1df1a42`](https://github.com/apache/spark/commit/1df1a424766dd7c8fd12dee5d2a34620e0025326).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

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

    https://github.com/apache/spark/pull/22283
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRD...

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

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


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

Posted by MaxGekk <gi...@git.apache.org>.
Github user MaxGekk commented on the issue:

    https://github.com/apache/spark/pull/22283
  
    @gatorsmile I am closing this since the changes in UnionRDD have been already merged to the master: https://github.com/apache/spark/commit/32da87dfa451fff677ed9316f740be2abdbff6a4


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

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

    https://github.com/apache/spark/pull/22283
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/95495/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22283
  
    **[Test build #95482 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/95482/testReport)** for PR 22283 at commit [`1df1a42`](https://github.com/apache/spark/commit/1df1a424766dd7c8fd12dee5d2a34620e0025326).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22283: [SPARK-25283][CORE] Fix for a deadlock in UnionRDD

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

    https://github.com/apache/spark/pull/22283
  
    Can one of the admins verify this patch?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org