You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Ray Chiang (JIRA)" <ji...@apache.org> on 2015/06/30 01:17:06 UTC

[jira] [Commented] (MAPREDUCE-6421) Fix Findbugs pre-patch warning in org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator.reduceNodeLabelExpression

    [ https://issues.apache.org/jira/browse/MAPREDUCE-6421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14606638#comment-14606638 ] 

Ray Chiang commented on MAPREDUCE-6421:
---------------------------------------

Full message from findbugs below

-----

IS2_INCONSISTENT_SYNC: Inconsistent synchronization

The fields of this class appear to be accessed inconsistently with respect to synchronization.  This bug report indicates that the bug pattern detector judged that

The class contains a mix of locked and unlocked accesses,
The class is not annotated as javax.annotation.concurrent.NotThreadSafe,
At least one locked access was performed by one of the class's own methods, and
The number of unsynchronized field accesses (reads and writes) was no more than one third of all accesses, with writes being weighed twice as high as reads
A typical bug matching this bug pattern is forgetting to synchronize one of the methods in a class that is intended to be thread-safe.

You can select the nodes labeled "Unsynchronized access" to show the code locations where the detector believed that a field was accessed without synchronization.

Note that there are various sources of inaccuracy in this detector; for example, the detector cannot statically detect all situations in which a lock is held.  Also, even when the detector is accurate in distinguishing locked vs. unlocked accesses, the code in question may still be correct.

> Fix Findbugs pre-patch warning in org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator.reduceNodeLabelExpression
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-6421
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6421
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Ray Chiang
>
> The actual error message is:
>   Inconsistent synchronization of org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator.reduceNodeLabelExpression; locked 66% of time
> The full URL for the findbugs is at:
>   https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/5858/artifact/patchprocess/trunkFindbugsWarningshadoop-mapreduce-client-app.html
> I haven't looked to see if this message is in error or if findbugs is correct.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)