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

Prevent DocumentRoutingEscalationAction to run concurrently

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2021.45, 2023.4
    • Component/s: Workflow

      Description

      The DocumentRoutingEscalation bulk action is scheduled every 5min to execute escalation rules.
      Concurrent execution of bulk action should be avoided, there is already a lock mechanism to avoid this but it works only partially.

      The lock is set for 3 min when the bulk action is processing a record and prevent the listener to submit a new bulk command.
      The problem is that the lock is set when the processing starts, but between bulk submit and processing there is the scroll that can take up to 6min for 50k match over 150m docs, so it is possible to schedule twice the bulk commands, resulting in concurrent updates overload and bad performance.

      The bulk action needs to be set a exclusive, this will avoid concurrent execution.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: