Tom created SPARK-22459:
---------------------------

             Summary: EdgeDirection "Either" Does Not Considerate real "either" 
direction
                 Key: SPARK-22459
                 URL: https://issues.apache.org/jira/browse/SPARK-22459
             Project: Spark
          Issue Type: Bug
          Components: GraphX
    Affects Versions: 2.2.0, 2.1.2, 2.1.1
         Environment: Windows 7. Yarn cluster / client mode. Tested with 2.2.0, 
2.1.1 and 2.1.2 spark versions.
            Reporter: Tom


When running functions involving  
[EdgeDirection|https://github.com/apache/spark/blob/master/graphx/src/main/scala/org/apache/spark/graphx/EdgeDirection.scala],
 the _EdgeDirection.Either_ type does not truly perform the actual specified 
direction (_either_).
For instance, when using _Pregel API_ with a simple graph as shown:
!data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPkAAADLCAMAAACbI8UEAAAAh1BMVEX////9/f0AAAB1dXWFhYX4+Pjl5eV6enr39/fj4+Py8vLo6OgsLCyCgoLs7Ox8fHxTU1PKyso8PDxNTU0vLy/c3NwiIiJFRUVLS0vFxcVcXFzOzs41NTVSUlIYGBisrKy9vb1tbW1mZmYeHh6fn5+UlJQLCwuysrKMjIylpaWZmZlgYGASEhKECRTxAAAUhElEQVR4nN1diZqqOgy2LIq1ICAtssi+Ku//fBdwOY4UBEThu//MOAoUG5ImaZq2q9X/FwAIo8rxYOKK/BBA2KZR7AeBL8a5Bfs/AMHI83jv+34W5XmOv1jFr8CK96aalGCY8pdB+mUTYf5tMWBFG9kpCzBhVYxhCtXPrB/UdyIAHNlJeAxKpsXnPI7OMcseCSGbdwzcnu2kUE/+XsyyjNv7sh4miaOeezyzRQDHqqNm7hqW72/NledxepaJHnUJPYxUpAYxhpAHJcrCa2zkrJ4kdrb7RcU/BHCDwuaa3AWrXaSFm3VbOd4wic1ZTc2GMzV0ZMqJhcHyyYXDkH7SuxDZo0vuWtSci0EVCR6zqBT5hUs8NgvVa2fPLkMoppGAzdAWW0UaGAdCsnH28UfwdOQrXRfwkYYoJKx9JHstglLD2iCUflq7L8LwL7nUfQmfayh+JX3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tdLU8/Iz57qKBPpGqgDc5bF7jsWA5bIIS/Mq9DGU/yv7Uvf3hUClHIUdzw+Y8fQlfEJ5F/4D+Bt8+EFHu9EAAAAASUVORK5CYII=!
With _EdgeDirection.Either_ you would guess that vertex #3 will send a message 
(when activated) to vertices 1, 2, and 4, but in reality it does not.
This might be bypassed, but in an expansive and ineffective way. 
Tested with 2.2.0, 2.1.1 and 2.1.2 spark versions.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to