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

Fix Invalidation propagation on deletion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.9.5
    • Fix Version/s: None
    • Component/s: Core VCS

      Description

      Some RestServerFeature are randomly fails because of bad invalidation propagation between sessions.

      S1 create a folder_1 (RestServerInit.populate)
      S2 load the folder_1 (during tests es indexing for instance)
      S1 delete the folder_1 (cleanupsession after tear down)
      S2 create folder_1 (RestServerInit.populate) but folder_1 exists in the selection so it creates a duplicate folder_1.2134123423432
      the constraints errors comes when it tries to create "folder_1/note_1" because the parent_id does not exists in the db

      The errors can be

      ava.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.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)
      
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: