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

Discrepancy among numeric constants corresponding to frequency of writing in TextAggregatorWriter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.0
    • None

    Description

      In the TextAggreggatorWriter class in org.apache.giraph.aggregators, there are static constants at the top of the class that correspond to the frequency of writing.

      The NEVER constant corresponds to never writing anything to a file, and it is assigned an (int) value of 0.

      AT_THE_END corresponds to writing to a file only once, when the computation is over, and it is assigned a numeric value of -1.

      The third type of frequency is where the discrepancy exists: ALWAYS corresponds to writing to a file in every superstep, and it is also assigned a numeric value of -1.

      ALWAYS's value should be changed to a 1. This is because the condition for writing (as governed by the shouldWrite() method) can be met when superstep % frequency == 0, which is always the case when frequency == 1.

      Attachments

        1. GIRAPH-739.patch
          0.8 kB
          Kyle Orlando

        Issue Links

          Activity

            People

              Unassigned Unassigned
              korlando Kyle Orlando
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: