GitHub user adeandrade opened a pull request: https://github.com/apache/spark/pull/12302
[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. Some tests were updated. 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/12302.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 #12302 ---- commit dd9123d7b55d0b43651f3dd089c684eb82c9a776 Author: Anderson de Andrade <adeandr...@verticalscope.com> Date: 2016-04-11T17:20:39Z 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org