-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 10.10-HF63, 2021.23
-
Component/s: Image Management
-
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.
-
Tags:
-
Team:PLATFORM
-
Sprint:nxplatform #61, nxplatform #62, nxplatform #63, nxplatform #64, nxplatform #65
-
Story Points:3
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:?]
- depends on
-
NXP-31103 Backport NXP-30897 to 10.10: Manually handle transaction in OperationContext
- Resolved