Uploaded image for project: 'Giraph'
  1. Giraph
  2. GIRAPH-1175

Avoid evaluation of Partition.getEdgeCount in log line

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: None
    • Labels:
      None

      Description

      Calling partition.getEdgeCount() iteration on all the vertices of the partition, which can be expensive. The expression inside checkNotNull is always evaluated, making this expensive. This constructs the string only if necessary.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dlogothetis Dionysios Logothetis
                Reporter:
                dlogothetis Dionysios Logothetis
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: