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

Reduce retries on recompute bulk actions

    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
    • Upgrade notes:
      Hide

      The maximum number of retries can now be configured for recompute bulk actions using nuxeo.conf options below, also, the new default is one retry (previously 3):

      nuxeo.bulk.action.recomputeThumbnails.maxRetries=1
      nuxeo.bulk.action.recomputeViews.maxRetries=1
      nuxeo.bulk.action.recomputeVideoConversions.maxRetries=1
      
      Show
      The maximum number of retries can now be configured for recompute bulk actions using nuxeo.conf options below, also, the new default is one retry (previously 3): nuxeo.bulk.action.recomputeThumbnails.maxRetries=1 nuxeo.bulk.action.recomputeViews.maxRetries=1 nuxeo.bulk.action.recomputeVideoConversions.maxRetries=1
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #77
    • Story Points:
      2

      Description

      The current policy for recomputeViews, recomputeThumbnails and recomputeVideoConversions is:

        <streamProcessor name="recomputeViews" class="org.nuxeo.ecm.platform.picture.recompute.RecomputeViewsAction"
            defaultConcurrency="${nuxeo.bulk.action.recomputeViews.defaultConcurrency:=2}"
            defaultPartitions="${nuxeo.bulk.action.recomputeViews.defaultPartitions:=6}">
            <policy name="default" maxRetries="3" delay="1s" maxDelay="10s" continueOnFailure="true" />
          </streamProcessor>
      

      This means that there are 4 attempts (one failure + 3 retries) which is a problem on systematic failure when the timeout is too low (or if a command hangs) this is too long for instance with a 10 min timeouts we are loosing 40min for nothing.

      The conversion should not be that random and we should set this to a single retry by default, and add an option to configure it.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: