-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.9.4
-
Fix Version/s: 5.8.0-HF17, 5.9.5
-
Component/s: Elasticsearch, Tests
-
Tags:
Two tests which seems to randomly fail (always together):
org.nuxeo.elasticsearch.test.TestPageProvider.ICanUseANxqlPageProvider
java.lang.AssertionError: at org.junit.Assert.fail(Assert.java:91) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertTrue(Assert.java:54) at org.nuxeo.elasticsearch.test.TestPageProvider.ICanUseANxqlPageProvider(TestPageProvider.java:159) 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:601) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.nuxeo.runtime.test.runner.FeaturesRunner$InvokeMethod.evaluate(FeaturesRunner.java:433) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.nuxeo.runtime.test.runner.FeaturesRunner.runChild(FeaturesRunner.java:388) at org.nuxeo.runtime.test.runner.FeaturesRunner.runChild(FeaturesRunner.java:53) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.nuxeo.runtime.test.runner.FeaturesRunner.run(FeaturesRunner.java:355) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
org.nuxeo.elasticsearch.test.TestPageProvider.org.nuxeo.elasticsearch.test.TestPageProvider
java.lang.AssertionError: teardown errors at org.nuxeo.runtime.test.runner.FeaturesRunner.afterTeardown(FeaturesRunner.java:303) at org.nuxeo.runtime.test.runner.FeaturesRunner.runChild(FeaturesRunner.java:390) at org.nuxeo.runtime.test.runner.FeaturesRunner.runChild(FeaturesRunner.java:53) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.nuxeo.runtime.test.runner.FeaturesRunner.run(FeaturesRunner.java:355) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) Suppressed: org.nuxeo.ecm.core.api.local.LocalException: No transaction active, cannot reconnect: test/Administrator#174 at org.nuxeo.ecm.core.api.local.LocalSession.getSession(LocalSession.java:109) at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:361) at org.nuxeo.ecm.core.api.AbstractSession.removeChildren(AbstractSession.java:1417) at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:131) at $Proxy46.removeChildren(Unknown Source) at org.nuxeo.ecm.core.test.CoreFeature.cleanupSession(CoreFeature.java:169) at org.nuxeo.ecm.core.test.CoreFeature.afterTeardown(CoreFeature.java:135) at org.nuxeo.runtime.test.runner.FeaturesRunner.afterTeardown(FeaturesRunner.java:306) ... 15 more
Seen here :