-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Tags:
-
Team:PLATFORM
-
Sprint:nxplatform 11.1.34, nxplatform 11.1.35, nxplatform 11.1.36
-
Story Points:0
DBS relies on the Bulk Deletion action and today is not able to handle document under retention, the result is that there is a retry applied and the computation fails.
[2020-04-22T11:10:52.555Z] 2020-04-22 11:10:51,094 [bulk/deletionPool-00,in:0,inCheckpoint:0,out:0,lastRead:1587553834677,lastTimer:0,wm:0,loop:2,rebalance assigned] WARN [AbstractComputation] Computation: bulk/deletion fails last record : bulk-deletion-00:+14, retrying ... [2020-04-22T11:10:52.556Z] org.nuxeo.ecm.core.api.DocumentExistsException: Cannot remove e55efeca-07dc-463b-bb2f-0aa84b088aa2, it is under retention / hold [2020-04-22T11:10:52.556Z] at org.nuxeo.ecm.core.storage.dbs.DBSSession.removeDocument(DBSSession.java:1599) ~[classes/:?] [2020-04-22T11:10:52.556Z] at org.nuxeo.ecm.core.storage.dbs.DBSDocument.removeSingleton(DBSDocument.java:780) ~[classes/:?] [2020-04-22T11:10:52.556Z] at org.nuxeo.ecm.core.action.DeletionAction$DeletionComputation.compute(DeletionAction.java:72) ~[classes/:?] [2020-04-22T11:10:52.556Z] at org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation.lambda$processBatchOfDocuments$1(AbstractBulkComputation.java:141) ~[classes/:?] [2020-04-22T11:10:52.556Z] at org.nuxeo.runtime.transaction.TransactionHelper.lambda$runInTransaction$5(TransactionHelper.java:587) ~[nuxeo-runtime-jtajca-PR-3930-11.1-SNAPSHOT.jar:?] [2020-04-22T11:10:52.556Z] at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:607) ~[nuxeo-runtime-jtajca-PR-3930-11.1-SNAPSHOT.jar:?] [2020-04-22T11:10:52.556Z] at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:587) ~[nuxeo-runtime-jtajca-PR-3930-11.1-SNAPSHOT.jar:?] [2020-04-22T11:10:52.556Z] at org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation.processBatchOfDocuments(AbstractBulkComputation.java:135) ~[classes/:?] [2020-04-22T11:10:52.556Z] at org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation.processRecord(AbstractBulkComputation.java:98) ~[classes/:?] [2020-04-22T11:10:52.556Z] at org.nuxeo.lib.stream.computation.log.ComputationRunner.lambda$processRecordWithRetry$10(ComputationRunner.java:383) ~[nuxeo-stream-PR-3930-11.1-SNAPSHOT.jar:?] [2020-04-22T11:10:52.556Z] at net.jodah.failsafe.Functions$10.call(Functions.java:252) ~[failsafe-1.1.0.jar:1.1.0] [2020-04-22T11:10:52.556Z] at net.jodah.failsafe.SyncFailsafe.call(SyncFailsafe.java:145) [failsafe-1.1.0.jar:1.1.0] [2020-04-22T11:10:52.556Z] at net.jodah.failsafe.SyncFailsafe.run(SyncFailsafe.java:81) [failsafe-1.1.0.jar:1.1.0] [2020-04-22T11:10:52.556Z] at org.nuxeo.lib.stream.computation.log.ComputationRunner.processRecordWithRetry(ComputationRunner.java:383) [nuxeo-stream-PR-3930-11.1-SNAPSHOT.jar:?] [2020-04-22T11:10:52.556Z] at org.nuxeo.lib.stream.computation.log.ComputationRunner.processRecord(ComputationRunner.java:366) [nuxeo-stream-PR-3930-11.1-SNAPSHOT.jar:?] [2020-04-22T11:10:52.556Z] at org.nuxeo.lib.stream.computation.log.ComputationRunner.processLoop(ComputationRunner.java:256) [nuxeo-stream-PR-3930-11.1-SNAPSHOT.jar:?] [2020-04-22T11:10:52.556Z] at org.nuxeo.lib.stream.computation.log.ComputationRunner.run(ComputationRunner.java:192) [nuxeo-stream-PR-3930-11.1-SNAPSHOT.jar:?] [2020-04-22T11:10:52.556Z] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?] [2020-04-22T11:10:52.556Z] at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] [2020-04-22T11:10:52.556Z] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] [2020-04-22T11:10:52.556Z] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] [2020-04-22T11:10:52.556Z] at java.lang.Thread.run(Thread.java:834) [?:?] [2020-04-22T11:10:53.129Z] 2020-04-22 11:10:53,101 [bulk/deletionPool-00,in:0,inCheckpoint:0,out:0,lastRead:1587553834677,lastTimer:0,wm:0,loop:2,rebalance assigned] WARN [AbstractComputation] Computation: bulk/deletion fails last record : bulk-deletion-00:+14, retrying ... [2020-04-22T11:10:53.129Z] org.nuxeo.ecm.core.api.DocumentExistsException: Cannot remove e55efeca-07dc-463b-bb2f-0aa84b088aa2, it is under retention / hold
This case should be handled by the action