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

Avoid failure on recomputeViews on deleted document

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10-HF70, 2023.0, 2021.31
    • Component/s: Bulk

      Description

      The recompute views helper is handling deleted document, but an exception is raised when trying to fire the event:

      fireEvent(session, session.getDocument(new IdRef(docId)), PICTURE_VIEWS_GENERATION_DONE_EVENT);
      
      bulk/recomputeViews: Skip record after failure: bulk-recomputeViews-01:+1052
      
      Computation: bulk/recomputeViews fails last record: bulk-recomputeViews-01:+1052, retrying ...
      
      org.nuxeo.ecm.core.api.DocumentNotFoundException: acd4e19b-d6b0-4683-986f-2d31c8869037
      	at org.nuxeo.ecm.core.storage.dbs.DBSSession.getDocumentByUUID(DBSSession.java:402) ~[nuxeo-core-storage-dbs-2021.27.13.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:356) ~[nuxeo-core-2021.27.13.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:999) ~[nuxeo-core-2021.27.13.jar:?]
      	at org.nuxeo.ecm.platform.picture.recompute.RecomputeViewsAction$RecomputeViewsComputation.compute(RecomputeViewsAction.java:98) ~[nuxeo-platform-imaging-core-2021.27.13.jar:?]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bdelbosc Benoit Delbosc
                Reporter:
                bdelbosc Benoit Delbosc
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: