-
- Downloads
Rebuild routing table after Graph.reverse
GraphImpl.reverse used to reverse edges in each partition of the edge RDD but preserve the routing table and replicated vertex view, since reversing should not affect partitioning. However, the old routing table would then have incorrect information for srcAttrOnly and dstAttrOnly. These RDDs should be switched. A simple fix is for Graph.reverse to rebuild the routing table and replicated vertex view. Thanks to Bogdan Ghidireac for reporting this issue on the [mailing list](http://apache-spark-user-list.1001560.n3.nabble.com/graph-reverse-amp-Pregel-API-td4338.html). Author: Ankur Dave <ankurdave@gmail.com> Closes #431 from ankurdave/fix-reverse-bug and squashes the following commits: 75d63cb [Ankur Dave] Rebuild routing table after Graph.reverse
Showing
- graphx/src/main/scala/org/apache/spark/graphx/impl/GraphImpl.scala 1 addition, 1 deletion...c/main/scala/org/apache/spark/graphx/impl/GraphImpl.scala
- graphx/src/test/scala/org/apache/spark/graphx/GraphSuite.scala 10 additions, 0 deletions...x/src/test/scala/org/apache/spark/graphx/GraphSuite.scala
Loading
Please register or sign in to comment