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

Timothee Maret updated SLING-10200:
-----------------------------------
    Summary: Provide the importer errors as queue properties  (was: Provide the 
importer logs as queue properties)

> Provide the importer errors as queue properties
> -----------------------------------------------
>
>                 Key: SLING-10200
>                 URL: https://issues.apache.org/jira/browse/SLING-10200
>             Project: Sling
>          Issue Type: Bug
>          Components: Content Distribution
>    Affects Versions: Content Distribution Journal Core 0.1.18, Content 
> Distribution Core 0.4.6
>            Reporter: Timothee Maret
>            Priority: Major
>
> The queue API currently exposes the number of attempts to import a given 
> entry but not the logs corresponding to the last attempt. The logs typically 
> contain the root cause for the failure.
> Providing the logs as properties of each queue item will allow investigating 
> the root cause of increasing attempts without having to access and scrape 
> logs.
> By using the default GET servlet, we currently obtain the following 
> informations
> {code}
> curl -u admin:admin 
> localhost:9500/libs/sling/distribution/services/agents/publish.-1.json | jq 
> '.queues'
> {
>   "sling:resourceType": "sling/distribution/service/agent/queue/list",
>   "items": [
>     "00b6b2a8-e63a-49e8-9481-1700312c3e59-publishSubscriber"
>   ],
>   "00b6b2a8-e63a-49e8-9481-1700312c3e59-publishSubscriber": {
>     "capabilities": [],
>     "sling:resourceType": "sling/distribution/service/agent/queue",
>     "state": "RUNNING",
>     "items": [
>       "aemdistribution_package-0@576438706"
>     ],
>     "itemsCount": "1",
>     "empty": false,
>     "aemdistribution_package-0@576438706": {
>       "size": 3771,
>       "paths": [
>         "/libs"
>       ],
>       "sling:resourceType": "sling/distribution/service/agent/queue/item",
>       "action": "ADD",
>       "id": "aemdistribution_package-0@576438706",
>       "time": "Fri Mar 05 15:56:56 UTC 2021",
>       "state": "QUEUED",
>       "userid": "admin",
>       "logs": "this % with @ weird characters like ', like \" and even like 
> and / and \\ is a status",
>       "attempts": "2"
>     }
>   }
> }
> {code}
> We would add two properties, a `message` and `stackTrace` corresponding to 
> the last processing attempt.



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

Reply via email to