Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10123

Distribution agent queue processor should implement a backoff in case of retries for processing an item

    XMLWordPrintableJSON

Details

    Description

      In case of recoverable exceptions, distribution agent queue processor does not evict the queue item from the processing queue [0]. Rather, the item is retried infinitely until either the distribution of the item is successful or a non-recoverable exception is thrown for the item. However, since there is "something wrong" because of which an exception is thrown in the first place, we should add a cool off period before trying to reattempt to distribute the same item. This can be achieved through a linear or exponential backoff.

      cc - ashishc

      [0] https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/agent/impl/SimpleDistributionAgentQueueProcessor.java#L147-L150

      Attachments

        Activity

          People

            marett Timothee Maret
            mohiaror Mohit Arora
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 40m
                1h 40m