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

[GitHub] spark pull request: [SPARK-13416][GraphX] Add positive check for o...

GitHub user zhengruifeng opened a pull request:

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

    [SPARK-13416][GraphX] Add positive check for option 'numIter' in StronglyConnectedComponents 

    JIRA: https://issues.apache.org/jira/browse/SPARK-13416
    
    ## What changes were proposed in this pull request?
    
    The output of StronglyConnectedComponents with numIter no greater than 1 may make no sense. So I just add require check in it.
    
    
    ## How was the this patch tested?
    
     unit tests passed
    
     
    


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

    $ git pull https://github.com/zhengruifeng/spark scccheck

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

    https://github.com/apache/spark/pull/11284.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 #11284
    
----
commit 1e514ef561d6df9d0a7a292ee53b2cf9d961e013
Author: Zheng RuiFeng <ru...@foxmail.com>
Date:   2016-02-21T02:53:30Z

    add check for numIters

commit ddcfb9176b0b435ef3bafb2fb6358ddb5364de21
Author: Zheng RuiFeng <ru...@foxmail.com>
Date:   2016-02-21T02:54:10Z

    add check for numIters

commit b4485b8971a6b9e2caaff58a9da0e2c2c3bb04a2
Author: Zheng RuiFeng <ru...@foxmail.com>
Date:   2016-02-21T03:03:59Z

    reformat

----


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

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


[GitHub] spark pull request: [SPARK-13416][GraphX] Add positive check for o...

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

    https://github.com/apache/spark/pull/11284#issuecomment-186775224
  
    **[Test build #2557 has started](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/2557/consoleFull)** for PR 11284 at commit [`d42d97d`](https://github.com/apache/spark/commit/d42d97dc7e58790ec25bcee2ad5509b0da481c8f).


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

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


[GitHub] spark pull request: [SPARK-13416][GraphX] Add positive check for o...

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

    https://github.com/apache/spark/pull/11284#discussion_r53562158
  
    --- Diff: graphx/src/main/scala/org/apache/spark/graphx/lib/StronglyConnectedComponents.scala ---
    @@ -36,7 +36,7 @@ object StronglyConnectedComponents {
        * @return a graph with vertex attributes containing the smallest vertex id in each SCC
        */
       def run[VD: ClassTag, ED: ClassTag](graph: Graph[VD, ED], numIter: Int): Graph[VertexId, ED] = {
    -
    +    require(numIter > 0)
    --- End diff --
    
    I think you'd need to add an error message, e.g.
    
    s"Number of iterations ($numIter) must be greater than 0."


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

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


[GitHub] spark pull request: [SPARK-13416][GraphX] Add positive check for o...

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

    https://github.com/apache/spark/pull/11284#issuecomment-186775975
  
    **[Test build #2557 has finished](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/2557/consoleFull)** for PR 11284 at commit [`d42d97d`](https://github.com/apache/spark/commit/d42d97dc7e58790ec25bcee2ad5509b0da481c8f).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


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

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


[GitHub] spark pull request: [SPARK-13416][GraphX] Add positive check for o...

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

    https://github.com/apache/spark/pull/11284#discussion_r53562433
  
    --- Diff: graphx/src/main/scala/org/apache/spark/graphx/lib/StronglyConnectedComponents.scala ---
    @@ -36,7 +36,7 @@ object StronglyConnectedComponents {
        * @return a graph with vertex attributes containing the smallest vertex id in each SCC
        */
       def run[VD: ClassTag, ED: ClassTag](graph: Graph[VD, ED], numIter: Int): Graph[VertexId, ED] = {
    -
    +    require(numIter > 0)
    --- End diff --
    
    ok, the error mesage is added


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

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


[GitHub] spark pull request: [SPARK-13416][GraphX] Add positive check for o...

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

    https://github.com/apache/spark/pull/11284#issuecomment-186728190
  
    Can one of the admins verify this patch?


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

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


[GitHub] spark pull request: [SPARK-13416][GraphX] Add positive check for o...

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

    https://github.com/apache/spark/pull/11284#issuecomment-186777256
  
    Thanks - I've merged this in master.



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

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


[GitHub] spark pull request: [SPARK-13416][GraphX] Add positive check for o...

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

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


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

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