You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Kengo Seki (Jira)" <ji...@apache.org> on 2023/02/24 00:56:00 UTC

[jira] [Created] (AMBARI-25864) Fix an unit test failure on ambari-metrics-common

Kengo Seki created AMBARI-25864:
-----------------------------------

             Summary: 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


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: issues-unsubscribe@ambari.apache.org
For additional commands, e-mail: issues-help@ambari.apache.org