Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4844

Counters / AbstractCounters have constant references not declared final

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0, 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Counters have a number of immutable fields that have not been declared 'final'.

      For example, the field groups is not final. It is, however, accessed in a couple of methods that are declared 'synchronized'. While there is a happens-before relationship between these methods calls, there is none between the Counters object initialization and these synchronized methods.

        Attachments

        1. MAPREDUCE-4844-002.patch
          2 kB
          Brahma Reddy Battula
        2. MAPREDUCE-4844-002.patch
          1 kB
          Brahma Reddy Battula
        3. MAPREDUCE-4844-branch-1.patch
          3 kB
          Gera Shegalov

          Activity

            People

            • Assignee:
              brahmareddy Brahma Reddy Battula
              Reporter:
              jira.shegalov Gera Shegalov
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: