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

ES Rest tests failures

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: Elasticsearch

      Description

      • ES Bulk result in response is not valid JSON. We should assess it in other way.
      • Randomly, there is an JNDI issue
      • Randomly, there is an init ES issue:
      Error Message
      
      invoke on features error [org.nuxeo.runtime.test.runner.RuntimeFeature@17d9b857, org.nuxeo.ecm.core.test.CoreFeature@56d563fc, org.nuxeo.ecm.platform.test.PlatformFeature@539761ed, org.nuxeo.runtime.test.runner.web.WebDriverFeature@779e397a, org.nuxeo.runtime.test.runner.JettyFeature@34cfb5f0, org.nuxeo.ecm.core.test.JettyTransactionalFeature@30b1baa6, org.nuxeo.ecm.webengine.test.WebEngineFeatureCore@64550143, org.nuxeo.ecm.webengine.test.WebEngineFeature@8c6092b, org.nuxeo.ecm.automation.test.EmbeddedAutomationServerFeature@183ea8d, org.nuxeo.ecm.restapi.test.RestServerFeature@7b9bcfc1, org.nuxeo.ecm.core.test.TransactionalFeature@3264c74d, org.nuxeo.elasticsearch.test.RepositoryElasticSearchFeature@7658aa13]
      
      Stacktrace
      
      java.lang.AssertionError: invoke on features error [org.nuxeo.runtime.test.runner.RuntimeFeature@17d9b857, org.nuxeo.ecm.core.test.CoreFeature@56d563fc, org.nuxeo.ecm.platform.test.PlatformFeature@539761ed, org.nuxeo.runtime.test.runner.web.WebDriverFeature@779e397a, org.nuxeo.runtime.test.runner.JettyFeature@34cfb5f0, org.nuxeo.ecm.core.test.JettyTransactionalFeature@30b1baa6, org.nuxeo.ecm.webengine.test.WebEngineFeatureCore@64550143, org.nuxeo.ecm.webengine.test.WebEngineFeature@8c6092b, org.nuxeo.ecm.automation.test.EmbeddedAutomationServerFeature@183ea8d, org.nuxeo.ecm.restapi.test.RestServerFeature@7b9bcfc1, org.nuxeo.ecm.core.test.TransactionalFeature@3264c74d, org.nuxeo.elasticsearch.test.RepositoryElasticSearchFeature@7658aa13]
      	at org.nuxeo.runtime.test.runner.FeaturesRunner.invokeFeatures(FeaturesRunner.java:472)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner.beforeSetup(FeaturesRunner.java:290)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner.runChild(FeaturesRunner.java:399)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner.runChild(FeaturesRunner.java:55)
      	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:366)
      	at org.junit.runners.Suite.runChild(Suite.java:128)
      	at org.junit.runners.Suite.runChild(Suite.java:24)
      	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.junit.runner.JUnitCore.run(JUnitCore.java:157)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:85)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
      	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)
      	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.ConcurrentUpdateException: Failed to save session: org.nuxeo.ecm.core.api.ConcurrentUpdateDocumentException: org.nuxeo.ecm.core.storage.ConcurrentUpdateStorageException: org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "HIERARCHY_PARENTID_HIERARCHY_FK: PUBLIC.HIERARCHY FOREIGN KEY(PARENTID) REFERENCES PUBLIC.HIERARCHY(ID) ('7d1af1a0-1de1-47b9-a5c5-74c0c2443214')"; SQL statement:
      INSERT INTO "HIERARCHY" ("ID", "PARENTID", "POS", "NAME", "ISPROPERTY", "PRIMARYTYPE", "MIXINTYPES", "ISCHECKEDIN", "BASEVERSIONID", "MAJORVERSION", "MINORVERSION", "ISVERSION") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23506-177]
      		at org.nuxeo.ecm.core.api.AbstractSession.save(AbstractSession.java:1601)
      		at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
      		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      		at java.lang.reflect.Method.invoke(Method.java:606)
      		at org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:131)
      		at com.sun.proxy.$Proxy47.save(Unknown Source)
      		at org.nuxeo.ecm.restapi.test.RestServerInit.populate(RestServerInit.java:90)
      		at org.nuxeo.ecm.core.test.CoreFeature.initializeSession(CoreFeature.java:199)
      		at org.nuxeo.ecm.core.test.CoreFeature.beforeSetup(CoreFeature.java:128)
      		at org.nuxeo.runtime.test.runner.FeaturesRunner$8.call(FeaturesRunner.java:294)
      		at org.nuxeo.runtime.test.runner.FeaturesRunner.invokeFeatures(FeaturesRunner.java:476)
      		... 27 more
      	Caused by: org.nuxeo.ecm.core.api.ConcurrentUpdateDocumentException: org.nuxeo.ecm.core.storage.ConcurrentUpdateStorageException: org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "HIERARCHY_PARENTID_HIERARCHY_FK: PUBLIC.HIERARCHY FOREIGN KEY(PARENTID) REFERENCES PUBLIC.HIERARCHY(ID) ('7d1af1a0-1de1-47b9-a5c5-74c0c2443214')"; SQL statement:
      INSERT INTO "HIERARCHY" ("ID", "PARENTID", "POS", "NAME", "ISPROPERTY", "PRIMARYTYPE", "MIXINTYPES", "ISCHECKEDIN", "BASEVERSIONID", "MAJORVERSION", "MINORVERSION", "ISVERSION") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23506-177]
      		at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.save(SQLSession.java:190)
      		at org.nuxeo.ecm.core.api.AbstractSession.save(AbstractSession.java:1597)
      		... 37 more
      	Caused by: org.nuxeo.ecm.core.storage.ConcurrentUpdateStorageException: org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "HIERARCHY_PARENTID_HIERARCHY_FK: PUBLIC.HIERARCHY FOREIGN KEY(PARENTID) REFERENCES PUBLIC.HIERARCHY(ID) ('7d1af1a0-1de1-47b9-a5c5-74c0c2443214')"; SQL statement:
      INSERT INTO "HIERARCHY" ("ID", "PARENTID", "POS", "NAME", "ISPROPERTY", "PRIMARYTYPE", "MIXINTYPES", "ISCHECKEDIN", "BASEVERSIONID", "MAJORVERSION", "MINORVERSION", "ISVERSION") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23506-177]
      		at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCConnection.checkConcurrentUpdate(JDBCConnection.java:334)
      		at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.insertSimpleRows(JDBCRowMapper.java:605)
      		at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.writeCreates(JDBCRowMapper.java:502)
      		at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.write(JDBCRowMapper.java:472)
      		at org.nuxeo.ecm.core.storage.sql.SoftRefCachingRowMapper.write(SoftRefCachingRowMapper.java:428)
      		at org.nuxeo.ecm.core.storage.sql.SessionImpl.doFlush(SessionImpl.java:406)
      		at org.nuxeo.ecm.core.storage.sql.SessionImpl.flush(SessionImpl.java:380)
      		at org.nuxeo.ecm.core.storage.sql.SessionImpl.save(SessionImpl.java:359)
      		at org.nuxeo.ecm.core.storage.sql.ra.ConnectionImpl.save(ConnectionImpl.java:189)
      		at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.save(SQLSession.java:188)
      		... 38 more
      	Caused by: org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "HIERARCHY_PARENTID_HIERARCHY_FK: PUBLIC.HIERARCHY FOREIGN KEY(PARENTID) REFERENCES PUBLIC.HIERARCHY(ID) ('7d1af1a0-1de1-47b9-a5c5-74c0c2443214')"; SQL statement:
      INSERT INTO "HIERARCHY" ("ID", "PARENTID", "POS", "NAME", "ISPROPERTY", "PRIMARYTYPE", "MIXINTYPES", "ISCHECKEDIN", "BASEVERSIONID", "MAJORVERSION", "MINORVERSION", "ISVERSION") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23506-177]
      		at org.h2.message.DbException.getJdbcSQLException(DbException.java:344)
      		at org.h2.message.DbException.get(DbException.java:178)
      		at org.h2.message.DbException.get(DbException.java:154)
      		at org.h2.constraint.ConstraintReferential.checkRowOwnTable(ConstraintReferential.java:373)
      		at org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:315)
      		at org.h2.table.Table.fireConstraints(Table.java:909)
      		at org.h2.table.Table.fireAfterRow(Table.java:927)
      		at org.h2.command.dml.Insert.insertRows(Insert.java:162)
      		at org.h2.command.dml.Insert.update(Insert.java:115)
      		at org.h2.command.CommandContainer.update(CommandContainer.java:79)
      		at org.h2.command.Command.executeUpdate(Command.java:254)
      		at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:199)
      		at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.insertSimpleRows(JDBCRowMapper.java:585)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: