Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22395

Fix Drive tests under mongodb

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.2
    • Component/s: Nuxeo Drive

      Description

      These tests:

      • org.nuxeo.drive.fixtures.DefaultFileSystemItemFactoryFixture.testFolderItemChildrenPageProviderOverride-
      • org.nuxeo.drive.fixtures.DefaultFileSystemItemFactoryFixture.testCollectionMembership
      • org.nuxeo.drive.fixtures.DefaultFileSystemItemFactoryFixture.testBlobException
      • org.nuxeo.drive.fixtures.DefaultFileSystemItemFactoryFixture.testCreateFoldersWithSameName
      • org.nuxeo.drive.fixtures.DefaultFileSystemItemFactoryFixture.testCreateFilesWithSameName
      • org.nuxeo.drive.service.adapter.TestFileSystemItemAdapterService.testContribOverride

      fail systematically since https://qa.nuxeo.org/jenkins/view/Drive/job/master/job/addons_nuxeo-drive-server-master-multidb/547/ with:

      12:45:54 Running org.nuxeo.drive.service.adapter.TestFileSystemItemAdapterService
      12:45:55 StorageConfiguration: Deploying JDBC using DatabaseH2
      12:45:55 StorageConfiguration: Deploying a DBS repository using mongodb
      12:45:56 Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 1.698 sec <<< FAILURE! - in org.nuxeo.drive.service.adapter.TestFileSystemItemAdapterService
      12:45:56 testContribOverride(org.nuxeo.drive.service.adapter.TestFileSystemItemAdapterService)  Time elapsed: 0.203 sec  <<< FAILURE!
      12:45:56 java.lang.AssertionError: invoke on features error [Holder [type=class org.nuxeo.drive.test.NuxeoDriveFeature], Holder [type=class org.nuxeo.ecm.platform.test.PlatformFeature], Holder [type=class org.nuxeo.ecm.directory.sql.SQLDirectoryFeature], Holder [type=class org.nuxeo.ecm.platform.login.test.ClientLoginFeature], Holder [type=class org.nuxeo.ecm.core.test.CoreFeature], Holder [type=class org.nuxeo.ecm.core.test.TransactionalFeature], Holder [type=class org.nuxeo.runtime.test.runner.ContainerFeature], Holder [type=class org.nuxeo.ecm.core.management.jtajca.JtajcaManagementFeature], Holder [type=class org.nuxeo.runtime.management.ManagementFeature], Holder [type=class org.nuxeo.runtime.test.runner.RuntimeFeature], Holder [type=class org.nuxeo.runtime.test.runner.RandomBug$Feature], Holder [type=class org.nuxeo.runtime.test.runner.ConditionalIgnoreRule$Feature], Holder [type=class org.nuxeo.runtime.test.runner.MDCFeature]]
      12:45:56 	at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:123)
      12:45:56 	at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:113)
      12:45:56 	at org.nuxeo.runtime.test.runner.FeaturesRunner.afterTeardown(FeaturesRunner.java:227)
      12:45:56 	at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterTeardownStatement.evaluate(FeaturesRunner.java:414)
      12:45:56 	at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:525)
      12:45:56 	at org.nuxeo.runtime.test.runner.RuntimeDeployment$DeploymentStatement.evaluate(RuntimeDeployment.java:300)
      12:45:56 	at org.nuxeo.runtime.test.runner.RuntimeFeature$2$1.evaluate(RuntimeFeature.java:126)
      12:45:56 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      12:45:56 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      12:45:56 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      12:45:56 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      12:45:56 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      12:45:56 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      12:45:56 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      12:45:56 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      12:45:56 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      12:45:56 	at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterClassStatement.evaluate(FeaturesRunner.java:285)
      12:45:56 	at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:525)
      12:45:56 	at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeClassStatement.evaluate(FeaturesRunner.java:268)
      12:45:56 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      12:45:56 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      12:45:56 	at org.junit.runners.Suite.runChild(Suite.java:127)
      12:45:56 	at org.junit.runners.Suite.runChild(Suite.java:26)
      12:45:56 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      12:45:56 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      12:45:56 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      12:45:56 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      12:45:56 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      12:45:56 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      12:45:56 	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      12:45:56 	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
      12:45:56 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113)
      12:45:56 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:85)
      12:45:56 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
      12:45:56 	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)
      12:45:56 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      12:45:56 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      12:45:56 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      12:45:56 	Suppressed: java.lang.NullPointerException
      12:45:56 		at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:127)
      12:45:56 		at org.nuxeo.ecm.core.api.local.LocalSession.getSession(LocalSession.java:117)
      12:45:56 		at org.nuxeo.ecm.core.api.AbstractSession.queryAndFetch(AbstractSession.java:1243)
      12:45:56 		at org.nuxeo.ecm.core.api.AbstractSession.queryAndFetch(AbstractSession.java:1228)
      12:45:56 		at org.nuxeo.ecm.core.test.CoreFeature.cleanupSession(CoreFeature.java:276)
      12:45:56 		at org.nuxeo.ecm.core.test.CoreFeature.afterTeardown(CoreFeature.java:253)
      12:45:56 		at org.nuxeo.runtime.test.runner.FeaturesRunner$9.call(FeaturesRunner.java:231)
      12:45:56 		at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:126)
      12:45:56 		... 37 more
      12:45:56 
      12:45:56 org.nuxeo.drive.service.adapter.TestFileSystemItemAdapterService  Time elapsed: 0.334 sec  <<< FAILURE!
      12:45:56 java.lang.AssertionError: invoke on features error [Holder [type=class org.nuxeo.drive.test.NuxeoDriveFeature], Holder [type=class org.nuxeo.ecm.platform.test.PlatformFeature], Holder [type=class org.nuxeo.ecm.directory.sql.SQLDirectoryFeature], Holder [type=class org.nuxeo.ecm.platform.login.test.ClientLoginFeature], Holder [type=class org.nuxeo.ecm.core.test.CoreFeature], Holder [type=class org.nuxeo.ecm.core.test.TransactionalFeature], Holder [type=class org.nuxeo.runtime.test.runner.ContainerFeature], Holder [type=class org.nuxeo.ecm.core.management.jtajca.JtajcaManagementFeature], Holder [type=class org.nuxeo.runtime.management.ManagementFeature], Holder [type=class org.nuxeo.runtime.test.runner.RuntimeFeature], Holder [type=class org.nuxeo.runtime.test.runner.RandomBug$Feature], Holder [type=class org.nuxeo.runtime.test.runner.ConditionalIgnoreRule$Feature], Holder [type=class org.nuxeo.runtime.test.runner.MDCFeature]]
      12:45:56 	at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:123)
      12:45:56 	at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:113)
      12:45:56 	at org.nuxeo.runtime.test.runner.FeaturesRunner.afterRun(FeaturesRunner.java:183)
      12:45:56 	at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterClassStatement.evaluate(FeaturesRunner.java:287)
      12:45:56 	at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:525)
      12:45:56 	at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeClassStatement.evaluate(FeaturesRunner.java:268)
      12:45:56 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      12:45:56 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      12:45:56 	at org.junit.runners.Suite.runChild(Suite.java:127)
      12:45:56 	at org.junit.runners.Suite.runChild(Suite.java:26)
      12:45:56 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      12:45:56 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      12:45:56 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      12:45:56 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      12:45:56 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      12:45:56 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      12:45:56 	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      12:45:56 	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
      12:45:56 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113)
      12:45:56 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:85)
      12:45:56 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
      12:45:56 	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)
      12:45:56 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      12:45:56 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      12:45:56 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      12:45:56 	Suppressed: java.lang.RuntimeException: Errors caught while stopping components, giving up
      12:45:56 		at org.nuxeo.runtime.AbstractRuntimeService.stopComponents(AbstractRuntimeService.java:366)
      12:45:56 		at org.nuxeo.runtime.AbstractRuntimeService.standby(AbstractRuntimeService.java:311)
      12:45:56 		at org.nuxeo.runtime.test.runner.RuntimeFeature.afterRun(RuntimeFeature.java:163)
      12:45:56 		at org.nuxeo.runtime.test.runner.FeaturesRunner$5.call(FeaturesRunner.java:187)
      12:45:56 		at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:126)
      12:45:56 		... 24 more
      12:45:56 	Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException
      12:45:56 		at java.util.concurrent.FutureTask.report(FutureTask.java:122)
      12:45:56 		at java.util.concurrent.FutureTask.get(FutureTask.java:206)
      12:45:56 		at org.nuxeo.runtime.AbstractRuntimeService.stopComponents(AbstractRuntimeService.java:360)
      12:45:56 		... 28 more
      12:45:56 	Caused by: java.lang.NullPointerException
      12:45:56 		at org.nuxeo.ecm.core.cache.CacheServiceImpl.getApplicationStartedOrder(CacheServiceImpl.java:87)
      12:45:56 		at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.getApplicationStartedOrder(RegistrationInfoImpl.java:323)
      12:45:56 		at org.nuxeo.runtime.AbstractRuntimeService$RIApplicationStartedComparator.compare(AbstractRuntimeService.java:75)
      12:45:56 		at org.nuxeo.runtime.AbstractRuntimeService$RIApplicationStartedComparator.compare(AbstractRuntimeService.java:72)
      12:45:56 		at java.util.Collections$ReverseComparator2.compare(Collections.java:5178)
      12:45:56 		at java.util.TimSort.binarySort(TimSort.java:296)
      12:45:56 		at java.util.TimSort.sort(TimSort.java:239)
      12:45:56 		at java.util.Arrays.sort(Arrays.java:1512)
      12:45:56 		at java.util.ArrayList.sort(ArrayList.java:1454)
      12:45:56 		at java.util.Collections.sort(Collections.java:175)
      12:45:56 		at org.nuxeo.runtime.AbstractRuntimeService.notifyComponentsOnStopped(AbstractRuntimeService.java:573)
      12:45:56 		at org.nuxeo.runtime.AbstractRuntimeService.lambda$stopComponents$0(AbstractRuntimeService.java:351)
      12:45:56 		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      12:45:56 		at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      12:45:56 		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      12:45:56 		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      12:45:56 		at java.lang.Thread.run(Thread.java:745)
      

      Seems related to NXP-21969

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d