findbugsExcludeFile.xml 2.8 KB

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