[
https://issues.apache.org/jira/browse/YARN-11939?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Cheng Pan resolved YARN-11939.
------------------------------
Fix Version/s: 3.6.0
Resolution: Fixed
> 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
> Assignee: Ferenc Erdelyi
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.6.0
>
>
> *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: [email protected]
For additional commands, e-mail: [email protected]