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

Tag migration robustness

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.3-SNAPSHOT
    • Fix Version/s: 9.10
    • Component/s: Migration Service, Tagging

      Description

      If during tag migration there is a document which cannot be fetched, the migrator quits silently.

      Example exception (found by debugging), when a document type doesn't exist anymore:

      ERROR [Nuxeo-Migrator-tag-storage] [org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator] Exception
      org.nuxeo.ecm.core.api.DocumentNotFoundException: Unknown document type: BlogPost
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.newDocument(SQLSession.java:465)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.newDocument(SQLSession.java:442)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.getDocumentById(SQLSession.java:483)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.getDocumentByUUID(SQLSession.java:178)
      	at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:338)
      	at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:940)
      	at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator.lambda$migrateSession$4(TagsRelationsToFacetsMigrator.java:203)
      	at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator$$Lambda$494/576494127.accept(Unknown Source)
      	at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator.processBatched(TagsRelationsToFacetsMigrator.java:252)
      	at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator.migrateSession(TagsRelationsToFacetsMigrator.java:200)
      	at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator$$Lambda$489/1732790101.accept(Unknown Source)
      	at org.nuxeo.ecm.core.api.CoreInstance$3.run(CoreInstance.java:311)
      	at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:131)
      	at org.nuxeo.ecm.core.api.CoreInstance.doPrivileged(CoreInstance.java:313)
      	at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator.lambda$migrateRepository$0(TagsRelationsToFacetsMigrator.java:163)
      	at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator$$Lambda$488/645221742.run(Unknown Source)
      	at org.nuxeo.runtime.transaction.TransactionHelper.lambda$runInTransaction$3(TransactionHelper.java:569)
      	at org.nuxeo.runtime.transaction.TransactionHelper$$Lambda$283/1758908597.get(Unknown Source)
      	at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:589)
      	at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:569)
      	at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator.migrateRepository(TagsRelationsToFacetsMigrator.java:163)
      	at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator$$Lambda$487/682800648.accept(Unknown Source)
      	at java.util.ArrayList.forEach(ArrayList.java:1249)
      	at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator.run(TagsRelationsToFacetsMigrator.java:142)
      	at org.nuxeo.runtime.migration.MigrationServiceImpl.lambda$runStep$2(MigrationServiceImpl.java:472)
      	at org.nuxeo.runtime.migration.MigrationServiceImpl$$Lambda$486/963342120.accept(Unknown Source)
      	at org.nuxeo.runtime.migration.MigrationServiceImpl$MigratorWithContext.run(MigrationServiceImpl.java:306)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 hour
                  1h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.