You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Timothee Maret (Jira)" <ji...@apache.org> on 2019/12/20 21:14:00 UTC

[jira] [Resolved] (SLING-8945) ActiveResourceQueue doesn't provide cluster-consistent processing-attempts view

     [ https://issues.apache.org/jira/browse/SLING-8945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothee Maret resolved SLING-8945.
-----------------------------------
    Resolution: Fixed

> ActiveResourceQueue doesn't provide cluster-consistent processing-attempts view
> -------------------------------------------------------------------------------
>
>                 Key: SLING-8945
>                 URL: https://issues.apache.org/jira/browse/SLING-8945
>             Project: Sling
>          Issue Type: Bug
>          Components: Content Distribution
>    Affects Versions: Content Distribution Core 0.4.0
>            Reporter: Ashish Chopra
>            Assignee: Timothee Maret
>            Priority: Critical
>             Fix For: Content Distribution Core 0.4.2
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> [0] enables {{ActiveResourceQueue}} (introduced via SLING-8853) to capture processing attempts, but since those are kept in memory the processing-attempts view is not cluster-consistent. Specifically, if a {{ActiveResourceQueue}} is introspected, and its Status or its Item Status is requested by an instance that is _not_ processing the {{ResourceQueue}} (say, in response to a browser request), the statuses will be returned incorrectly (e.g., a blocked queue will be returned as running since the processing attempts will not be incremented on the instance not processing the queue).
> One way to fix this would be to persist the processing attempts alongside the queue-items in the resource-tree that backs the {{ResourceQueue}}. 
> [0] https://github.com/apache/sling-org-apache-sling-distribution-core/commit/20f5575af5318c07c31e7623319cf4f1d20258c8



--
This message was sent by Atlassian Jira
(v8.3.4#803005)