findbugsExcludeFile.xml 3.9 KB

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