Hello,

I am using Pregel API with Spark (1.0 branch compiled on Apr 16th) and I
run into some problems when my graph has the edges reversed.
If the edges of my graph are reversed, the sendMsg function does no longer
receives the attribute for the source vertex (it is null). This does not
happen with the original graph.

I find this behavior inconsistent and the sendMsg becomes unusable if
the EdgeTriplet has only the vertexIDs and no other information.

I attached the code to reproduce the behavior.
http://pastebin.com/Xbb5wDNi

If you run the program, it will throw a NPE at line 44 because edge.srcAttr
is null

If you remove ".reverse" from line 25 and run it again, edge.srcAttr will
have a value and the program will complete.

Am I using graph.reverse incorrectly?

Thank you for your help.
Bogdan

Reply via email to