You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by Mikhail Pryakhin <m....@gmail.com> on 2021/02/18 19:56:22 UTC
spotbugs maven plugin
Hello community,
I’m facing builds failure after the PR <https://github.com/apache/hadoop/commit/4cf35315838a6e65f87ed64aaa8f1d31594c7fcd> enabling spotbugs maven plugin was merged.
After that all builds report failure because of the issue in spotbugs <https://github.com/spotbugs/spotbugs/issues/1161>
For example, here is a successful build <https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2701/1/console> before the spotbugs plugin was activated and a failed one <https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2701/2/console> after enabling the plugin.
All builds report the following error:
17:12:07 Starting with /home/jenkins/jenkins-home/workspace/hadoop-multibranch_PR-2701/out/branch-spotbugs-hadoop-common-project_hadoop-common-warnings.xml
17:12:07 Exception in thread "main" java.lang.UnsupportedOperationException
17:12:07 at java.util.Collections$UnmodifiableCollection.removeIf(Collections.java:1086)
17:12:07 at edu.umd.cs.findbugs.BugRanker.trimToMaxRank(BugRanker.java:322)
17:12:07 at edu.umd.cs.findbugs.workflow.Update.discardUnwantedBugs(Update.java:337)
17:12:07 at edu.umd.cs.findbugs.workflow.Update.doit(Update.java:484)
17:12:07 at edu.umd.cs.findbugs.workflow.Update.main(Update.java:405)
Just curious, what are the acceptable ways to mitigate the problem?
- reverting back to findbugs plugin
- downgrading spotbugs to the version prior the version when the issue was introduced
I'm stuck with my failed build and can’t get the PR approved. Need Help :)
Kind Regards,
Mike Pryakhin
Re: spotbugs maven plugin
Posted by Akira Ajisaka <aa...@apache.org>.
Reverted https://issues.apache.org/jira/browse/HADOOP-16870.
Thanks and regards,
Akira
On Fri, Feb 19, 2021 at 4:56 AM Mikhail Pryakhin <m....@gmail.com> wrote:
>
> Hello community,
>
> I’m facing builds failure after the PR <https://github.com/apache/hadoop/commit/4cf35315838a6e65f87ed64aaa8f1d31594c7fcd> enabling spotbugs maven plugin was merged.
> After that all builds report failure because of the issue in spotbugs <https://github.com/spotbugs/spotbugs/issues/1161>
>
> For example, here is a successful build <https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2701/1/console> before the spotbugs plugin was activated and a failed one <https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2701/2/console> after enabling the plugin.
>
> All builds report the following error:
>
> 17:12:07 Starting with /home/jenkins/jenkins-home/workspace/hadoop-multibranch_PR-2701/out/branch-spotbugs-hadoop-common-project_hadoop-common-warnings.xml
> 17:12:07 Exception in thread "main" java.lang.UnsupportedOperationException
> 17:12:07 at java.util.Collections$UnmodifiableCollection.removeIf(Collections.java:1086)
> 17:12:07 at edu.umd.cs.findbugs.BugRanker.trimToMaxRank(BugRanker.java:322)
> 17:12:07 at edu.umd.cs.findbugs.workflow.Update.discardUnwantedBugs(Update.java:337)
> 17:12:07 at edu.umd.cs.findbugs.workflow.Update.doit(Update.java:484)
> 17:12:07 at edu.umd.cs.findbugs.workflow.Update.main(Update.java:405)
>
>
> Just curious, what are the acceptable ways to mitigate the problem?
>
> - reverting back to findbugs plugin
> - downgrading spotbugs to the version prior the version when the issue was introduced
>
> I'm stuck with my failed build and can’t get the PR approved. Need Help :)
>
>
> Kind Regards,
> Mike Pryakhin
>
---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org