You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2017/02/15 14:07:41 UTC

[jira] [Updated] (SLING-6522) Refactor/Improve error handling of InstallTaskFactorys

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

Konrad Windszus updated SLING-6522:
-----------------------------------
    Description: 
Currently the retry behaviour and exception handling needs to be done in each {{InstallTaskFactory}} individually. It would be good to have a global handling in the OSGi Installer, which could be easily triggered from the individual transformers.
The desired approach is outlined in http://www.mail-archive.com/dev@sling.apache.org/msg60947.html. 
Basically we have to distinguish between the following error cases:

# Unrecoverable error, an error which will occur with every retry, therefore there is no need to try to execute the same transformer on the same resource again.
# Recoverable error, the retry should happen immediately
# Recoverable error, the retry should happen with the next cycle of the OSGi Installer

  was:
Currently the retry behaviour and exception handling needs to be done in each {{InstallTaskFactory}} individually. It would be good to have a global handling in the OSGi Installer, which could be easily triggered from the individual transformers.
The approach is outlined in http://www.mail-archive.com/dev@sling.apache.org/msg60947.html. 
Basically we have to distinguish between the following error cases:

# Unrecoverable error, an error which will occur with every retry, therefore there is no need to try to execute the same transformer on the same resource again.
# Recoverable error, the retry should happen immediately
# Recoverable error, the retry should happen with the next cycle of the OSGi Installer


> Refactor/Improve error handling of InstallTaskFactorys
> ------------------------------------------------------
>
>                 Key: SLING-6522
>                 URL: https://issues.apache.org/jira/browse/SLING-6522
>             Project: Sling
>          Issue Type: Improvement
>          Components: Installer
>    Affects Versions: Installer Core 3.8.0
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>
> Currently the retry behaviour and exception handling needs to be done in each {{InstallTaskFactory}} individually. It would be good to have a global handling in the OSGi Installer, which could be easily triggered from the individual transformers.
> The desired approach is outlined in http://www.mail-archive.com/dev@sling.apache.org/msg60947.html. 
> Basically we have to distinguish between the following error cases:
> # Unrecoverable error, an error which will occur with every retry, therefore there is no need to try to execute the same transformer on the same resource again.
> # Recoverable error, the retry should happen immediately
> # Recoverable error, the retry should happen with the next cycle of the OSGi Installer



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)