You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/03/20 07:54:00 UTC
[jira] [Commented] (YARN-11939) UT TestAuxServices breaking on OpenClover - waterfall effect
[ https://issues.apache.org/jira/browse/YARN-11939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18066973#comment-18066973 ]
ASF GitHub Bot commented on YARN-11939:
---------------------------------------
pan3793 commented on PR #8351:
URL: https://github.com/apache/hadoop/pull/8351#issuecomment-4096363222
does upgrading work?
> UT TestAuxServices breaking on OpenClover - waterfall effect
> -------------------------------------------------------------
>
> Key: YARN-11939
> URL: https://issues.apache.org/jira/browse/YARN-11939
> Project: Hadoop YARN
> Issue Type: Bug
> Reporter: Ferenc Erdelyi
> Priority: Major
>
> *Analysis*
> In the **/TestAuxServices.java in the hadoop-yarn-server-nodemanager, OpenClover implementation in the UT TestAuxServices breaks on Java 17 with the following exception:
>
> {code:java}
> cd hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager
> mvn clean clover:setup test -Dtest=TestAuxServices {code}
> {code:java}
> Caused by: java.lang.IllegalAccessError: failed to access class org.apache.hadoop.yarn.server.nodemanager.containermanager.TestAuxServices$__CLR4_4_1qjgqjgmmuipado from class org.apache.hadoop.yarn.server.nodemanager.containermanager.TestAuxServices$LightService (org.apache.hadoop.yarn.server.nodemanager.containermanager.TestAuxServices$__CLR4_4_1qjgqjgmmuipado is in unnamed module of loader 'app'; org.apache.hadoop.yarn.server.nodemanager.containermanager.TestAuxServices$LightService is in unnamed module of loader org.apache.hadoop.util.ApplicationClassLoader @2a31cfba) at org.apache.hadoop.yarn.server.nodemanager.containermanager.TestAuxServices$LightService.<init>(TestAuxServices.java:171) at org.apache.hadoop.yarn.server.nodemanager.containermanager.TestAuxServices$ServiceC.<init>(TestAuxServices.java:244) {code}
> Once disabled, testRecoverWithAMRMProxyHA broke with the following exception:
>
> {code:java}
>
> [ERROR] Failures:
> [ERROR] TestFederationInterceptor.testSecondAttempt:812->__CLR4_4_1y4sqj6ppo:861->lambda$__CLR4_4_1y4sqj6ppo$5:870 expected:<1> but was:<0>
> [ERROR] TestFederationInterceptor.testSubClusterTimeOut:763->__CLR4_4_13bm3y4poy:766->lambda$__CLR4_4_13bm3y4poy$3:792 expected:<2> but was:<0>
> [INFO]
> [ERROR] Tests run: 19, Failures: 2, Errors: 0, Skipped: 0
> {code}
>
> Then I disabled both clover for **/TestFederationInterceptor.java and hit this issue:
>
> {code:java}
>
> [ERROR] Failures:
> [ERROR] TestFederationInterceptor.testRecoverWithAMRMProxyHA:509->testRecover:531->lambda$testRecover$2:589 expected:<1> but was:<0>
> [ERROR] TestFederationInterceptor.testRecoverWithoutAMRMProxyHA:514->testRecover:531->lambda$testRecover$2:589 expected:<1> but was:<0>
> [ERROR] TestFederationInterceptor.testSecondAttempt:861->lambda$testSecondAttempt$5:870 expected:<1> but was:<0>
> [INFO]
> [ERROR] Tests run: 19, Failures: 3, Errors: 0, Skipped: 0
> {code}
>
> Therefore proposing to disable clover for the entire project.
> *Background*
> * Hadoop currently uses clover-maven-plugin.version 4.4.1. (no Java 17 support).
> * In OpenClover 4.5. Java 17 is experimental as of the latest release:[https://openclover.org/doc/openclover-4.5.2-release-notes.html]
> * There was an earlier suggestion to use Jacoco instead of Unit Test.
> * HADOOP-15190 “Use Jacoco to generate Unit Test coverage reports”
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org