GitHub user adeandrade opened a pull request:

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

    [SPARK-14390][GraphX] Make initialization step in Pregel optional.

    ## What changes were proposed in this pull request?
    
    Suppose a sendMsg function depends on the state of a edge's vertices to 
send messages, and those Pregel messages update such state. In this scenario, 
initialMsg will initially enforce the same message on all vertices, effectively 
removing a custom initialization one may have per vertex.
    
    To deal with this situation, we must define a dummy initMsg (i.e. None), 
and all Pregel functions must be modified to handle this type of message. A 
simpler and less cumbersome solution is to make initMsg and the initialization 
step in Pregel optional.
    
    
    ## How was this patch tested?
    
    No new tests were added. Previous functionality was kept.

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

    $ git pull https://github.com/adeandrade/spark pregel-optional-initmessage

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

    https://github.com/apache/spark/pull/12159.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 #12159
    
----
commit 611fe6b080b8d69d7b298064907293bc29bdd247
Author: Anderson de Andrade <[email protected]>
Date:   2016-04-04T22:43:33Z

    Make initialization step in Pregel optional.

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to