findbugsExcludeFile.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.DirectoryListing"/>
  12. <Class name="org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier"/>
  13. <Class name="org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey"/>
  14. <Class name="org.apache.hadoop.hdfs.protocol.SnapshotDiffReport$DiffReportEntry"/>
  15. <Class name="org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus"/>
  16. <Class name="org.apache.hadoop.hdfs.server.protocol.DatanodeStorageReport"/>
  17. <Class name="org.apache.hadoop.hdfs.protocol.datatransfer.sasl.SaslResponseWithNegotiatedCipherOption"/>
  18. </Or>
  19. <Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2" />
  20. </Match>
  21. <Match>
  22. <Package name="org.apache.hadoop.hdfs.protocol.proto" />
  23. <Bug pattern="SE_BAD_FIELD,MS_SHOULD_BE_FINAL,UCF_USELESS_CONTROL_FLOW" />
  24. </Match>
  25. <Match>
  26. <Class name="org.apache.hadoop.hdfs.shortcircuit.DfsClientShmManager$EndpointShmManager" />
  27. <Method name="allocSlot" />
  28. <Bug pattern="UL_UNRELEASED_LOCK_EXCEPTION_PATH" />
  29. </Match>
  30. <Match>
  31. <Class name="org.apache.hadoop.hdfs.shortcircuit.DfsClientShmManager$EndpointShmManager" />
  32. <Method name="allocSlot" />
  33. <Bug pattern="UL_UNRELEASED_LOCK" />
  34. </Match>
  35. <Match>
  36. <Class name="org.apache.hadoop.hdfs.DFSInputStream"/>
  37. <Field name="tcpReadsDisabledForTesting"/>
  38. <Bug pattern="MS_SHOULD_BE_FINAL"/>
  39. </Match>
  40. <!--
  41. ResponseProccessor is thread that is designed to catch RuntimeException.
  42. -->
  43. <Match>
  44. <Class name="org.apache.hadoop.hdfs.DataStreamer$ResponseProcessor" />
  45. <Method name="run" />
  46. <Bug pattern="REC_CATCH_EXCEPTION" />
  47. </Match>
  48. <!--
  49. We use a separate lock to guard cachingStrategy in order to separate
  50. locks for p-reads from seek + read invocations.
  51. -->
  52. <Match>
  53. <Class name="org.apache.hadoop.hdfs.DFSInputStream" />
  54. <Field name="cachingStrategy" />
  55. <Bug pattern="IS2_INCONSISTENT_SYNC" />
  56. </Match>
  57. </FindBugsFilter>