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

ImagingComponent callPictureConversionChain should handle automation transaction

    XMLWordPrintable

    Details

    • Release Notes Summary:
      ImagingComponent no longer converts picture outside current transaction, caller must handle transaction management explicitly. An option is available to fill picture views outside current transaction in DefaultPictureAdapter.
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #61, nxplatform #62, nxplatform #63, nxplatform #64, nxplatform #65
    • Story Points:
      3

      Description

      RecomputeView bulk action is trying to manage a transaction per document,
      but when calling ImagingComponent#callPictureconversionChain the conversion is done outside of the transaction, furthermore if the automation chain is failing automation try to rollback the transaction and fails:

      Could not mark transaction as rollback only
      bulk/recomputeViewsPool-01,in:4,inCheckpoint:4,out:4,lastRead:1651142114836,lastTimer:0,wm:216408546103001089,loop:3915,rebalance assigned
      
      java.lang.IllegalStateException: No transaction associated with current thread
      	at org.apache.geronimo.transaction.manager.TransactionManagerImpl.setRollbackOnly(TransactionManagerImpl.java:241) ~[geronimo-transaction-3.1.4-NX1.jar:3.1.4-NX1]
      	at org.nuxeo.runtime.jtajca.NuxeoContainer$UserTransactionImpl.setRollbackOnly(NuxeoContainer.java:358) ~[nuxeo-runtime-jtajca-2021.18.6.jar:?]
      	at org.nuxeo.runtime.transaction.TransactionHelper.setTransactionRollbackOnly(TransactionHelper.java:531) ~[nuxeo-runtime-jtajca-2021.18.6.jar:?]
      	at org.nuxeo.ecm.automation.OperationContext.setRollback(OperationContext.java:223) ~[nuxeo-automation-core-2021.18.6.jar:?]
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:123) ~[nuxeo-automation-core-2021.18.6.jar:?]
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.lambda$run$0(OperationServiceImpl.java:105) ~[nuxeo-automation-core-2021.18.6.jar:?]
      	at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:331) ~[nuxeo-automation-core-2021.18.6.jar:?]
      	at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:296) ~[nuxeo-automation-core-2021.18.6.jar:?]
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:105) ~[nuxeo-automation-core-2021.18.6.jar:?]
      	at org.nuxeo.ecm.platform.picture.ImagingComponent.callPictureConversionChain(ImagingComponent.java:359) ~[nuxeo-platform-imaging-core-2021.18.6.jar:?]
      	at org.nuxeo.ecm.platform.picture.ImagingComponent.computeView(ImagingComponent.java:301) ~[nuxeo-platform-imaging-core-2021.18.6.jar:?]
      	at org.nuxeo.ecm.platform.picture.ImagingComponent.computeView(ImagingComponent.java:268) ~[nuxeo-platform-imaging-core-2021.18.6.jar:?]
      	at org.nuxeo.ecm.platform.picture.ImagingComponent.computeViewsFor(ImagingComponent.java:381) ~[nuxeo-platform-imaging-core-2021.18.6.jar:?]
      	at org.nuxeo.ecm.platform.picture.api.adapters.AbstractPictureAdapter.addViews(AbstractPictureAdapter.java:290) ~[nuxeo-platform-imaging-core-2021.18.6.jar:?]
      	at org.nuxeo.ecm.platform.picture.api.adapters.DefaultPictureAdapter.fillPictureViews(DefaultPictureAdapter.java:98) ~[nuxeo-platform-imaging-core-2021.18.6.jar:?]
      	at org.nuxeo.ecm.platform.picture.PictureViewsHelper.computePictureViews(PictureViewsHelper.java:89) ~[nuxeo-platform-imaging-core-2021.18.6.jar:?]
      	at org.nuxeo.ecm.platform.picture.recompute.RecomputeViewsAction$RecomputeViewsComputation.compute(RecomputeViewsAction.java:96) ~[nuxeo-platform-imaging-core-2021.18.6.jar:?]
      
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: