findbugsExcludeFile.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <FindBugsFilter>
  2. <Match>
  3. <Or>
  4. <Class name="org.apache.hadoop.fs.XAttr"/>
  5. <Class name="org.apache.hadoop.fs.XAttr$Builder"/>
  6. <Class name="org.apache.hadoop.hdfs.inotify.EventBatch"/>
  7. <Class name="org.apache.hadoop.hdfs.protocol.HdfsFileStatus"/>
  8. <Class name="org.apache.hadoop.hdfs.protocol.LocatedBlock"/>
  9. <Class name="org.apache.hadoop.hdfs.protocol.BlockStoragePolicy"/>
  10. <Class name="org.apache.hadoop.hdfs.protocol.CorruptFileBlocks"/>
  11. <Class name="org.apache.hadoop.hdfs.protocol.StripedBlockInfo"/>
  12. <Class name="org.apache.hadoop.hdfs.protocol.DirectoryListing"/>
  13. <Class name="org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier"/>
  14. <Class name="org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey"/>
  15. <Class name="org.apache.hadoop.hdfs.protocol.SnapshotDiffReport$DiffReportEntry"/>
  16. <Class name="org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus"/>
  17. <Class name="org.apache.hadoop.hdfs.server.protocol.DatanodeStorageReport"/>
  18. <Class name="org.apache.hadoop.hdfs.protocol.datatransfer.sasl.SaslResponseWithNegotiatedCipherOption"/>
  19. <Class name="org.apache.hadoop.hdfs.DFSPacket"/>
  20. <Class name="org.apache.hadoop.hdfs.protocol.LocatedStripedBlock"/>
  21. <Class name="org.apache.hadoop.hdfs.util.StripedBlockUtil$ChunkByteArray"/>
  22. </Or>
  23. <Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2" />
  24. </Match>
  25. <Match>
  26. <Package name="org.apache.hadoop.hdfs.protocol.proto" />
  27. <Bug pattern="SE_BAD_FIELD,MS_SHOULD_BE_FINAL,UCF_USELESS_CONTROL_FLOW" />
  28. </Match>
  29. <Match>
  30. <Class name="org.apache.hadoop.hdfs.shortcircuit.DfsClientShmManager$EndpointShmManager" />
  31. <Method name="allocSlot" />
  32. <Bug pattern="UL_UNRELEASED_LOCK_EXCEPTION_PATH" />
  33. </Match>
  34. <Match>
  35. <Class name="org.apache.hadoop.hdfs.shortcircuit.DfsClientShmManager$EndpointShmManager" />
  36. <Method name="allocSlot" />
  37. <Bug pattern="UL_UNRELEASED_LOCK" />
  38. </Match>
  39. <Match>
  40. <Class name="org.apache.hadoop.hdfs.DFSInputStream"/>
  41. <Field name="tcpReadsDisabledForTesting"/>
  42. <Bug pattern="MS_SHOULD_BE_FINAL"/>
  43. </Match>
  44. <!--
  45. ResponseProccessor is thread that is designed to catch RuntimeException.
  46. -->
  47. <Match>
  48. <Class name="org.apache.hadoop.hdfs.DataStreamer$ResponseProcessor" />
  49. <Method name="run" />
  50. <Bug pattern="REC_CATCH_EXCEPTION" />
  51. </Match>
  52. <!--
  53. We use a separate lock to guard cachingStrategy in order to separate
  54. locks for p-reads from seek + read invocations.
  55. -->
  56. <Match>
  57. <Class name="org.apache.hadoop.hdfs.DFSInputStream" />
  58. <Field name="cachingStrategy" />
  59. <Bug pattern="IS2_INCONSISTENT_SYNC" />
  60. </Match>
  61. </FindBugsFilter>