ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wai Ho Wong <slbtea...@hotmail.com>
Subject ViewRegistryTest errors when building 2.4.2.0.0
Date Thu, 02 Mar 2017 02:53:02 GMT
Hi,


I am building Ambari 2.4.2.0.0 but failed at ambari-server tests. The messages are as below:


Running org.apache.ambari.server.view.ViewRegistryTest
Tests run: 34, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 37.821 sec <<< FAILURE!
- in org.apache.ambari.server.view.ViewRegistryTest
testReadViewArchives(org.apache.ambari.server.view.ViewRegistryTest)  Time elapsed: 10.145
sec  <<< FAILURE!
java.lang.AssertionError: expected:<DEPLOYED> but was:<ERROR>
        at org.apache.ambari.server.view.ViewRegistryTest.testReadViewArchives(ViewRegistryTest.java:467)
        at org.apache.ambari.server.view.ViewRegistryTest.testReadViewArchives(ViewRegistryTest.java:241)

testReadViewArchives_removeUndeployed(org.apache.ambari.server.view.ViewRegistryTest)  Time
elapsed: 10.107 sec  <<< FAILURE!
java.lang.AssertionError: expected:<DEPLOYED> but was:<ERROR>
        at org.apache.ambari.server.view.ViewRegistryTest.testReadViewArchives(ViewRegistryTest.java:467)
        at org.apache.ambari.server.view.ViewRegistryTest.testReadViewArchives_removeUndeployed(ViewRegistryTest.java:246)

testReadViewArchives_viewAutoInstanceCreation(org.apache.ambari.server.view.ViewRegistryTest)
 Time elapsed: 10.102 sec  <<< FAILURE!
java.lang.AssertionError: expected:<DEPLOYED> but was:<ERROR>
        at org.apache.ambari.server.view.ViewRegistryTest.testReadViewArchives(ViewRegistryTest.java:467)
        at org.apache.ambari.server.view.ViewRegistryTest.testReadViewArchives_viewAutoInstanceCreation(ViewRegistryTest.java:256)

/surefire-reports/org.apache.ambari.server.view.ViewRegistryTest-output.txt is showing the
following error:

2017-03-02 10:12:09,667 ERROR [main] view.ViewRegistry (ViewRegistry.java:migrateDataFromPreviousVersion(1728))
- Caught exception migrating data in view MY_VIEW{1.0.0}
java.lang.NullPointerException
        at org.apache.ambari.server.view.ViewRegistry.getLatestUnregisteredInstance(ViewRegistry.java:2097)
        at org.apache.ambari.server.view.ViewRegistry.migrateDataFromPreviousVersion(ViewRegistry.java:1709)
        at org.apache.ambari.server.view.ViewRegistry.readViewArchives(ViewRegistry.java:1621)
        at org.apache.ambari.server.view.ViewRegistry.readViewArchives(ViewRegistry.java:518)
        at org.apache.ambari.server.view.ViewRegistryTest.testReadViewArchives(ViewRegistryTest.java:449)
        at org.apache.ambari.server.view.ViewRegistryTest.testReadViewArchives(ViewRegistryTest.java:241)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:344)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:269)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:240)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:184)
        at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:286)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:240)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)

Could someone kindly advise what is the problem here? I would like to make some customization
so I need to run tests successfully. Thanks!

Regards,
Eric



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message