Uploaded image for project: 'Giraph (Retired)'
  1. Giraph (Retired)
  2. GIRAPH-240

Our vertices shouldn't accept null ids or values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • graph
    • None

    Description

      I may be missing something, but I don't understand why HashMapVertex and EdgeListVertex (and possibly others) check for null vertexId and vertexValue instead of complaining.

      Shouldn't each vertex be forced to have an id and a value? It's a source of potential bugs (see the serialization code that has to check for null and read/write a boolean flag) and I don't see the logic.
      If one doesn't want vertex/edge values at all there's always NullWritable.

      Attachments

        Issue Links

          Activity

            People

              apresta Alessandro Presta
              apresta Alessandro Presta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: