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

Allow to run the nuxeo-drive addon multidb job under mongodb

    XMLWordPrintable

    Details

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

      Description

      See http://qa.nuxeo.org/jenkins/view/Drive/job/addons_nuxeo-drive-server-master-multidb/, the mongodb profile is currently activated but the build fails with:

      14:21:27 [INFO] --- ant-assembly-maven-plugin:2.0.5-SNAPSHOT:build (setup-vcs) @ nuxeo-drive-parent ---
      14:21:27 [INFO] Active Maven profiles:
      14:21:27 qa (source: external)
      14:21:27 customdb (source: org.nuxeo.ecm:nuxeo-drive-parent:8.2-SNAPSHOT)
      14:21:27 qa (source: org.nuxeo:nuxeo-ecm:8.2-SNAPSHOT)
      14:21:27 os-notwindows (source: org.nuxeo:nuxeo-ecm:8.2-SNAPSHOT)
      14:21:27 customdb (source: org.nuxeo:nuxeo-ecm:8.2-SNAPSHOT)
      14:21:27 mongodb (source: org.nuxeo:nuxeo-ecm:8.2-SNAPSHOT)
      14:21:27 [INFO] Managed version set on org.nuxeo:nuxeo-ftest:zip:1.7.23-SNAPSHOT
      14:21:27 [INFO] Downloading: http://mavenin.nuxeo.com/nexus/content/groups/internal-snapshots/org/nuxeo/nuxeo-ftest/1.7.23-SNAPSHOT/maven-metadata.xml
      14:21:27 [INFO] Downloaded: http://mavenin.nuxeo.com/nexus/content/groups/internal-snapshots/org/nuxeo/nuxeo-ftest/1.7.23-SNAPSHOT/maven-metadata.xml (773 B at 5.4 KB/sec)
      14:21:27 [INFO]     [unzip] Expanding: /opt/jenkins/.m2/repository/org/nuxeo/nuxeo-ftest/1.7.23-SNAPSHOT/nuxeo-ftest-1.7.23-SNAPSHOT.zip into /opt/jenkins/workspace/addons_nuxeo-drive-server-master-multidb/PYTHON/System-CPython-2.7/Slave/MULTIDB_LINUX/dbprofile/mongodb/jdk/java-8-oracle/target
      14:21:28 
      14:21:28 vcs-tests.prepare-db:
      14:21:28 [INFO]     [mkdir] Created dir: /opt/jenkins/workspace/addons_nuxeo-drive-server-master-multidb/PYTHON/System-CPython-2.7/Slave/MULTIDB_LINUX/dbprofile/mongodb/jdk/java-8-oracle/target/jdbc-libs
      14:21:28 [INFO]      [echo] Prepare MongoDB...
      14:21:28 [INFO] Managed version set on org.nuxeo:nuxeo-ftest:zip:1.7.23-SNAPSHOT
      14:21:28 [INFO]     [unzip] Expanding: /opt/jenkins/.m2/repository/org/nuxeo/nuxeo-ftest/1.7.23-SNAPSHOT/nuxeo-ftest-1.7.23-SNAPSHOT.zip into /opt/jenkins/workspace/addons_nuxeo-drive-server-master-multidb/PYTHON/System-CPython-2.7/Slave/MULTIDB_LINUX/dbprofile/mongodb/jdk/java-8-oracle/target
      14:21:28 [INFO] 
      14:21:28 [INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ nuxeo-drive-parent ---
      14:21:28 [INFO] 
      14:21:28 [INFO] --- build-helper-maven-plugin:1.8:remove-project-artifact (remove-old-installers) @ nuxeo-drive-parent ---
      14:21:28 [INFO] /opt/jenkins/.m2/repository/org/nuxeo/ecm/nuxeo-drive-parent/8.2-SNAPSHOT removed.
      14:21:28 [INFO]                                                                         
      14:21:28 [INFO] ------------------------------------------------------------------------
      14:21:28 [INFO] Building Nuxeo Drive Core 8.2-SNAPSHOT
      14:21:28 [INFO] ------------------------------------------------------------------------
      14:21:28 [INFO] Downloading: http://mavenin.nuxeo.com/nexus/content/groups/internal-snapshots/org/nuxeo/ecm/core/nuxeo-core-api/8.2-SNAPSHOT/maven-metadata.xml
      14:21:28 [INFO] Downloaded: http://mavenin.nuxeo.com/nexus/content/groups/internal-snapshots/org/nuxeo/ecm/core/nuxeo-core-api/8.2-SNAPSHOT/maven-metadata.xml (992 B at 5.9 KB/sec)
      14:21:28 [INFO] Downloading: http://mavenin.nuxeo.com/nexus/content/groups/internal-snapshots/org/nuxeo/ecm/core/nuxeo-core-parent/8.2-SNAPSHOT/maven-metadata.xml
      
      ...
      
      14:21:48 [INFO] 
      14:21:48 [INFO] --- maven-enforcer-plugin:1.4.1:enforce (default) @ nuxeo-drive-core ---
      14:21:49 [INFO] 
      14:21:49 [INFO] --- buildnumber-maven-plugin:1.2:create (default) @ nuxeo-drive-core ---
      14:21:49 [INFO] Storing buildNumber: 20160322-132149 at timestamp: 1458652909001
      14:21:49 [INFO] Executing: /bin/sh -c cd /opt/jenkins/workspace/addons_nuxeo-drive-server-master-multidb/PYTHON/System-CPython-2.7/Slave/MULTIDB_LINUX/dbprofile/mongodb/jdk/java-8-oracle/nuxeo-drive-core && git rev-parse --verify HEAD
      14:21:49 [INFO] Working directory: /opt/jenkins/workspace/addons_nuxeo-drive-server-master-multidb/PYTHON/System-CPython-2.7/Slave/MULTIDB_LINUX/dbprofile/mongodb/jdk/java-8-oracle/nuxeo-drive-core
      14:21:49 [INFO] Storing buildScmBranch: UNKNOWN
      14:21:49 [INFO] 
      14:21:49 [INFO] --- incremental-build-plugin:1.6-NX1:incremental-build (default) @ nuxeo-drive-core ---
      14:21:49 [INFO] Verifying module descriptor ...
      14:21:49 [INFO] Pom descriptor modification detected.
      14:21:49 [INFO] Deleting /opt/jenkins/workspace/addons_nuxeo-drive-server-master-multidb/PYTHON/System-CPython-2.7/Slave/MULTIDB_LINUX/dbprofile/mongodb/jdk/java-8-oracle/nuxeo-drive-core/target
      14:21:49 [INFO] 
      14:21:49 [INFO] --- maven-resources-plugin:2.6:copy-resources (copy-readme) @ nuxeo-drive-core ---
      14:21:49 [INFO] Using 'UTF-8' encoding to copy filtered resources.
      14:21:49 [INFO] Copying 0 resource
      14:21:49 [INFO] 
      14:21:49 [INFO] --- maven-resources-plugin:2.6:copy-resources (copy-readme-parent) @ nuxeo-drive-core ---
      14:21:49 [INFO] Using 'UTF-8' encoding to copy filtered resources.
      14:21:49 [INFO] Copying 1 resource
      14:21:49 [INFO] 
      14:21:49 [INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ nuxeo-drive-core ---
      14:21:49 [INFO] 
      14:21:49 [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ nuxeo-drive-core ---
      14:21:49 [INFO] Using 'UTF-8' encoding to copy filtered resources.
      14:21:49 [INFO] Copying 14 resources
      14:21:49 [INFO] 
      14:21:49 [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ nuxeo-drive-core ---
      14:21:49 [INFO] Changes detected - recompiling the module!
      14:21:49 [INFO] Compiling 74 source files to /opt/jenkins/workspace/addons_nuxeo-drive-server-master-multidb/PYTHON/System-CPython-2.7/Slave/MULTIDB_LINUX/dbprofile/mongodb/jdk/java-8-oracle/nuxeo-drive-core/target/classes
      14:21:50 [WARNING] /opt/jenkins/workspace/addons_nuxeo-drive-server-master-multidb/PYTHON/System-CPython-2.7/Slave/MULTIDB_LINUX/dbprofile/mongodb/jdk/java-8-oracle/nuxeo-drive-core/src/main/java/org/nuxeo/drive/service/impl/ChangeFinderReloadListener.java: Some input files use or override a deprecated API.
      14:21:50 [WARNING] /opt/jenkins/workspace/addons_nuxeo-drive-server-master-multidb/PYTHON/System-CPython-2.7/Slave/MULTIDB_LINUX/dbprofile/mongodb/jdk/java-8-oracle/nuxeo-drive-core/src/main/java/org/nuxeo/drive/service/impl/ChangeFinderReloadListener.java: Recompile with -Xlint:deprecation for details.
      14:21:50 [INFO] 
      14:21:50 [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ nuxeo-drive-core ---
      14:21:50 [INFO] Using 'UTF-8' encoding to copy filtered resources.
      14:21:50 [INFO] Copying 9 resources
      14:21:50 [INFO] 
      14:21:50 [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ nuxeo-drive-core ---
      14:21:50 [INFO] Changes detected - recompiling the module!
      14:21:50 [INFO] Compiling 18 source files to /opt/jenkins/workspace/addons_nuxeo-drive-server-master-multidb/PYTHON/System-CPython-2.7/Slave/MULTIDB_LINUX/dbprofile/mongodb/jdk/java-8-oracle/nuxeo-drive-core/target/test-classes
      14:21:51 [WARNING] /opt/jenkins/workspace/addons_nuxeo-drive-server-master-multidb/PYTHON/System-CPython-2.7/Slave/MULTIDB_LINUX/dbprofile/mongodb/jdk/java-8-oracle/nuxeo-drive-core/src/test/java/org/nuxeo/drive/service/AuditChangeFinderTestSuite.java: Some input files use or override a deprecated API.
      14:21:51 [WARNING] /opt/jenkins/workspace/addons_nuxeo-drive-server-master-multidb/PYTHON/System-CPython-2.7/Slave/MULTIDB_LINUX/dbprofile/mongodb/jdk/java-8-oracle/nuxeo-drive-core/src/test/java/org/nuxeo/drive/service/AuditChangeFinderTestSuite.java: Recompile with -Xlint:deprecation for details.
      14:21:51 [INFO] 
      14:21:51 [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ nuxeo-drive-core ---
      14:21:51 [INFO] Surefire report directory: /opt/jenkins/workspace/addons_nuxeo-drive-server-master-multidb/PYTHON/System-CPython-2.7/Slave/MULTIDB_LINUX/dbprofile/mongodb/jdk/java-8-oracle/nuxeo-drive-core/target/surefire-reports
      14:21:51 [INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider
      14:21:52 [INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true
      14:21:52 
      14:21:52 -------------------------------------------------------
      14:21:52  T E S T S
      14:21:52 -------------------------------------------------------
      14:21:54 StorageConfiguration: Deploying JDBC using DatabasePostgreSQL
      14:22:25 StorageConfiguration: Deploying JDBC using DatabasePostgreSQL
      14:22:56 StorageConfiguration: Deploying JDBC using DatabasePostgreSQL
      14:23:26 StorageConfiguration: Deploying JDBC using DatabasePostgreSQL
      14:23:57 StorageConfiguration: Deploying JDBC using DatabasePostgreSQL
      14:24:27 StorageConfiguration: Deploying JDBC using DatabasePostgreSQL
      14:24:58 StorageConfiguration: Deploying JDBC using DatabasePostgreSQL
      14:25:28 StorageConfiguration: Deploying JDBC using DatabasePostgreSQL
      14:25:58 Tests run: 8, Failures: 8, Errors: 0, Skipped: 0, Time elapsed: -1,635,722.142 sec <<< FAILURE! - in org.nuxeo.drive.service.TestAuditChangeFinderClusteringEnabled
      14:25:58 org.nuxeo.drive.service.adapter.TestFileSystemItemAdapterService  Time elapsed: -1,635,935.346 sec  <<< FAILURE!
      14:25:58 java.lang.AssertionError: invoke on features error [Holder [type=class org.nuxeo.runtime.test.runner.MDCFeature], Holder [type=class org.nuxeo.runtime.test.runner.ConditionalIgnoreRule$Feature], Holder [type=class org.nuxeo.runtime.test.runner.RandomBug$Feature], Holder [type=class org.nuxeo.runtime.test.runner.RuntimeFeature], Holder [type=class org.nuxeo.runtime.test.runner.ContainerFeature], Holder [type=class org.nuxeo.ecm.core.test.TransactionalFeature], Holder [type=class org.nuxeo.ecm.core.test.CoreFeature]]
      14:25:58 	at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:124)
      14:25:58 	at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:114)
      14:25:58 	at org.nuxeo.runtime.test.runner.FeaturesRunner.start(FeaturesRunner.java:193)
      14:25:58 	at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeClassStatement.evaluate(FeaturesRunner.java:264)
      14:25:58 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      14:25:58 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      14:25:58 	at org.junit.runners.Suite.runChild(Suite.java:127)
      14:25:58 	at org.junit.runners.Suite.runChild(Suite.java:26)
      14:25:58 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      14:25:58 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      14:25:58 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      14:25:58 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      14:25:58 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      14:25:58 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      14:25:58 	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      14:25:58 	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
      14:25:58 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113)
      14:25:58 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:85)
      14:25:58 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
      14:25:58 	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)
      14:25:58 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      14:25:58 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      14:25:58 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      14:25:58 	Suppressed: com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches WritableServerSelector. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused}}]
      14:25:58 		at com.mongodb.connection.BaseCluster.createTimeoutException(BaseCluster.java:369)
      14:25:58 		at com.mongodb.connection.BaseCluster.selectServer(BaseCluster.java:101)
      14:25:58 		at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.<init>(ClusterBinding.java:75)
      14:25:58 		at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.<init>(ClusterBinding.java:71)
      14:25:58 		at com.mongodb.binding.ClusterBinding.getWriteConnectionSource(ClusterBinding.java:68)
      14:25:58 		at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:158)
      14:25:58 		at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:133)
      14:25:58 		at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:128)
      14:25:58 		at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:118)
      14:25:58 		at com.mongodb.operation.DropIndexOperation.execute(DropIndexOperation.java:69)
      14:25:58 		at com.mongodb.operation.DropIndexOperation.execute(DropIndexOperation.java:40)
      14:25:58 		at com.mongodb.Mongo.execute(Mongo.java:781)
      14:25:58 		at com.mongodb.Mongo$2.execute(Mongo.java:764)
      14:25:58 		at com.mongodb.DBCollection.dropIndex(DBCollection.java:2054)
      14:25:58 		at com.mongodb.DBCollection.dropIndexes(DBCollection.java:2062)
      14:25:58 		at org.nuxeo.ecm.core.test.StorageConfiguration.clearMongoDB(StorageConfiguration.java:164)
      14:25:58 		at org.nuxeo.ecm.core.test.StorageConfiguration.initMongoDB(StorageConfiguration.java:154)
      14:25:58 		at org.nuxeo.ecm.core.test.StorageConfiguration.<init>(StorageConfiguration.java:104)
      14:25:58 		at org.nuxeo.ecm.core.test.CoreFeature.getStorageConfiguration(CoreFeature.java:120)
      14:25:58 		at org.nuxeo.ecm.core.test.CoreFeature.start(CoreFeature.java:150)
      14:25:58 		at org.nuxeo.runtime.test.runner.FeaturesRunner$6.call(FeaturesRunner.java:197)
      14:25:58 		at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:127)
      14:25:58 		... 22 more
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: