[
https://issues.apache.org/jira/browse/AMBARI-25864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zhiguo Wu updated AMBARI-25864:
-------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
> Fix an unit test failure on ambari-metrics-common
> -------------------------------------------------
>
> Key: AMBARI-25864
> URL: https://issues.apache.org/jira/browse/AMBARI-25864
> Project: Ambari
> Issue Type: Bug
> Components: ambari-metrics
> Reporter: Kengo Seki
> Assignee: Kengo Seki
> Priority: Major
> Labels: pull-request-available
>
> I tried to run unit tests on the release-2.0.0-rc0 branch and ran into the
> following error:
> {code}
> $ mvn test -f ambari-metrics-common/pom.xml
> ...
> Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.411 sec <<<
> FAILURE! - in
> org.apache.hadoop.metrics2.sink.timeline.availability.MetricCollectorHATest
> testEmbeddedModeCollectorZK(org.apache.hadoop.metrics2.sink.timeline.availability.MetricCollectorHATest)
> Time elapsed: 0.007 sec <<< ERROR!
> java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
> at
> org.apache.hadoop.metrics2.sink.timeline.availability.MetricCollectorHATest.testEmbeddedModeCollectorZK(MetricCollectorHATest.java:88)
> Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
> at
> org.apache.hadoop.metrics2.sink.timeline.availability.MetricCollectorHATest.testEmbeddedModeCollectorZK(MetricCollectorHATest.java:88)
> Results :
> Tests in error:
> MetricCollectorHATest.testEmbeddedModeCollectorZK:88 ยป NoClassDefFound
> org/slf...
> Tests run: 20, Failures: 0, Errors: 1, Skipped: 0
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 35.496 s
> [INFO] Finished at: 2023-02-24T09:54:00+09:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on
> project ambari-metrics-common: There are test failures.
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]