[ 
https://issues.apache.org/jira/browse/SPARK-14219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Apache Spark reassigned SPARK-14219:
------------------------------------

    Assignee: Apache Spark

> Fix `pickRandomVertex` not to fall into infinite loops for graphs with one 
> vertex
> ---------------------------------------------------------------------------------
>
>                 Key: SPARK-14219
>                 URL: https://issues.apache.org/jira/browse/SPARK-14219
>             Project: Spark
>          Issue Type: Bug
>          Components: GraphX
>            Reporter: Dongjoon Hyun
>            Assignee: Apache Spark
>
> Currently, `GraphOps.pickRandomVertex()` falls into infinite loops for graphs 
> having only one vertex. This issue fixes it by modifying the following 
> termination-checking condition.
> {code}
> -      if (selectedVertices.count > 1) {
> +      if (selectedVertices.count > 0) {
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to