Skip to content

Commit 6cb5e6b

Browse files
committed
YARN-11879. Fix SpotBugs issues in hadoop-yarn-common module.
1 parent 3f1dc7d commit 6cb5e6b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

hadoop-yarn-project/hadoop-yarn/dev-support/findbugs-exclude.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,4 +726,10 @@
726726
<Package name="org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.placement.schema" />
727727
</Match>
728728

729+
<Match>
730+
<Package name="org.apache.hadoop.yarn.api.records.impl.pb"/>
731+
<Class name="~.*Impl$"/>
732+
<Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE"/>
733+
</Match>
734+
729735
</FindBugsFilter>

hadoop-yarn-project/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@
292292
<artifactId>spotbugs-maven-plugin</artifactId>
293293
<configuration>
294294
<xmlOutput>true</xmlOutput>
295+
<excludeFilterFile>
296+
${basedir}/dev-support/findbugs-exclude.xml
297+
</excludeFilterFile>
298+
<effort>Max</effort>
295299
</configuration>
296300
</plugin>
297301
</plugins>

0 commit comments

Comments
 (0)