HDFS-4031. Update findbugsExcludeFile.xml to include findbugs 2 exclusions. Contributed by Eli Collins

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1430468 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eli Collins 2013-01-08 19:51:44 +00:00
parent 43295b9f7b
commit db99f7f67d
2 changed files with 21 additions and 0 deletions

View File

@ -457,6 +457,9 @@ Release 2.0.3-alpha - Unreleased
HDFS-4030. BlockManager excessBlocksCount and HDFS-4030. BlockManager excessBlocksCount and
postponedMisreplicatedBlocksCount should be AtomicLongs. (eli) postponedMisreplicatedBlocksCount should be AtomicLongs. (eli)
HDFS-4031. Update findbugsExcludeFile.xml to include findbugs 2
exclusions. (eli)
OPTIMIZATIONS OPTIMIZATIONS
BUG FIXES BUG FIXES

View File

@ -290,4 +290,22 @@
<Method name="persistPaxosData" /> <Method name="persistPaxosData" />
<Bug pattern="OS_OPEN_STREAM" /> <Bug pattern="OS_OPEN_STREAM" />
</Match> </Match>
<!-- Don't complain about LocalDatanodeInfo's anonymous class -->
<Match>
<Class name="org.apache.hadoop.hdfs.BlockReaderLocal$LocalDatanodeInfo$1" />
<Bug pattern="SE_BAD_FIELD_INNER_CLASS" />
</Match>
<!-- Only one method increments numFailedVolumes and it is synchronized -->
<Match>
<Class name="org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsVolumeList" />
<Field name="numFailedVolumes" />
<Bug pattern="VO_VOLATILE_INCREMENT" />
</Match>
<!-- Access to pendingReceivedRequests is synchronized -->
<Match>
<Class name="org.apache.hadoop.hdfs.server.datanode.BPServiceActor" />
<Method name="notifyNamenodeBlockImmediately" />
<Field name="pendingReceivedRequests" />
<Bug pattern="VO_VOLATILE_INCREMENT" />
</Match>
</FindBugsFilter> </FindBugsFilter>