Gera Shegalov created MAPREDUCE-4844:
----------------------------------------

             Summary: Counters.java doesn't obey Java Memory Model
                 Key: MAPREDUCE-4844
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4844
             Project: Hadoop Map/Reduce
          Issue Type: Bug
    Affects Versions: 1.0.4
            Reporter: Gera Shegalov


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to