findbugsExcludeFile.xml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. <Class name="org.apache.hadoop.hdfs.protocol.SnapshotDiffReportListing$DiffReportListingEntry"/>
  23. <Class name="org.apache.hadoop.hdfs.protocol.SnapshotDiffReportListing"/>
  24. </Or>
  25. <Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2" />
  26. </Match>
  27. <Match>
  28. <Package name="org.apache.hadoop.hdfs.protocol.proto" />
  29. <Bug pattern="SE_BAD_FIELD,MS_SHOULD_BE_FINAL,UCF_USELESS_CONTROL_FLOW" />
  30. </Match>
  31. <Match>
  32. <Class name="org.apache.hadoop.hdfs.shortcircuit.DfsClientShmManager$EndpointShmManager" />
  33. <Method name="allocSlot" />
  34. <Bug pattern="UL_UNRELEASED_LOCK_EXCEPTION_PATH" />
  35. </Match>
  36. <Match>
  37. <Class name="org.apache.hadoop.hdfs.shortcircuit.DfsClientShmManager$EndpointShmManager" />
  38. <Method name="allocSlot" />
  39. <Bug pattern="UL_UNRELEASED_LOCK" />
  40. </Match>
  41. <Match>
  42. <Class name="org.apache.hadoop.hdfs.DFSInputStream"/>
  43. <Field name="tcpReadsDisabledForTesting"/>
  44. <Bug pattern="MS_SHOULD_BE_FINAL"/>
  45. </Match>
  46. <!--
  47. ResponseProccessor is thread that is designed to catch RuntimeException.
  48. -->
  49. <Match>
  50. <Class name="org.apache.hadoop.hdfs.DataStreamer$ResponseProcessor" />
  51. <Method name="run" />
  52. <Bug pattern="REC_CATCH_EXCEPTION" />
  53. </Match>
  54. <!--
  55. We use a separate lock to guard cachingStrategy in order to separate
  56. locks for p-reads from seek + read invocations.
  57. -->
  58. <Match>
  59. <Class name="org.apache.hadoop.hdfs.DFSInputStream" />
  60. <Field name="cachingStrategy" />
  61. <Bug pattern="IS2_INCONSISTENT_SYNC" />
  62. </Match>
  63. <!-- BlockLocations are user-facing, but LocatedBlocks are not. -->
  64. <Match>
  65. <Class name="org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus" />
  66. <Field name="hdfsloc" />
  67. <Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
  68. </Match>
  69. <!-- Hdfs*FileStatus are internal types. This "internal" state is not sensitive. -->
  70. <Match>
  71. <Class name="org.apache.hadoop.hdfs.protocol.HdfsNamedFileStatus" />
  72. <Method name="getLocalNameInBytes" />
  73. <Bug pattern="EI_EXPOSE_REP" />
  74. </Match>
  75. <Match>
  76. <Class name="org.apache.hadoop.hdfs.protocol.HdfsNamedFileStatus" />
  77. <Method name="getSymlinkInBytes" />
  78. <Bug pattern="EI_EXPOSE_REP" />
  79. </Match>
  80. <Match>
  81. <Class name="org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus" />
  82. <Method name="getLocalNameInBytes" />
  83. <Bug pattern="EI_EXPOSE_REP" />
  84. </Match>
  85. <Match>
  86. <Class name="org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus" />
  87. <Method name="getSymlinkInBytes" />
  88. <Bug pattern="EI_EXPOSE_REP" />
  89. </Match>
  90. </FindBugsFilter>