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

Counters / AbstractCounters have constant references not declared final

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.0, 3.0.0-alpha1
    • 2.8.0, 3.0.0-alpha1
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: