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

A problem of EdgePartitionBuilder in Graphx

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.0.3, 1.1.1, 1.2.0
    • GraphX
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: