Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-4249

A problem of EdgePartitionBuilder in Graphx

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.0.3, 1.1.1, 1.2.0
    • Component/s: GraphX
    • Labels:
      None

      Description

      https://github.com/apache/spark/blob/master/graphx/src/main/scala/org/apache/spark/graphx/impl/EdgePartitionBuilder.scala#L48
      in function toEdgePartition, code snippet " index.update(srcIds(0), 0)"
      the elements in array srcIds are all not initialized and are all 0. The effect is that if vertex ids don't contain 0, indexSize is equal to (realIndexSize + 1) and 0 is added to the `index`
      It seems that all versions have the problem

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Cookies Cookies
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: