Browse Source

HDFS-15048. Fix findbug in DirectoryScanner. Contributed by Sean Chow.

Masatake Iwasaki 5 years ago
parent
commit
00b313d6ff

+ 5 - 0
hadoop-hdfs-project/hadoop-hdfs/dev-support/findbugsExcludeFile.xml

@@ -246,4 +246,9 @@
         <Class name="org.apache.hadoop.hdfs.server.datanode.checker.AbstractFuture" />
         <Bug pattern="NS_DANGEROUS_NON_SHORT_CIRCUIT" />
     </Match>
+    <Match>
+        <Class name="org.apache.hadoop.hdfs.server.datanode.DirectoryScanner" />
+        <Method name="reconcile" />
+        <Bug pattern="SWL_SLEEP_WITH_LOCK_HELD" />
+    </Match>
  </FindBugsFilter>