findbugsExcludeFile.xml 4.0 KB

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