[
https://issues.apache.org/jira/browse/SLING-3966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14146196#comment-14146196
]
Marius Petria commented on SLING-3966:
--------------------------------------
I am not talking about dropping the QueueDistributionStrategy (which is
perfectly fine for priority paths), only that error handling should be done in
another kind of object.
In general an agent interacts with mainly three components.
- exports a package from an exporter
- adds the package to a queue
- imports the package into an importer
Each of these steps can be enhanced with a strategy object:
- ExporterStrategy - e.g. treat exporter errors
- QueueStrategy - e.g. treats priority paths
- ImporterStrategy - e.g. treats importer errors
> ErrorAwareQueueDistributionStrategy should be implemented as an
> ImporterDistributionStrategy
> --------------------------------------------------------------------------------------------
>
> Key: SLING-3966
> URL: https://issues.apache.org/jira/browse/SLING-3966
> Project: Sling
> Issue Type: Improvement
> Components: Replication
> Reporter: Marius Petria
> Assignee: Tommaso Teofili
>
> Treating replication errors should be done right after the import not when
> package queuing is done. Hence we might need to define a different extension
> point (ImporterDistributionStrategy) and treat the error at that place.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)