[
https://issues.apache.org/jira/browse/SLING-7620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16453653#comment-16453653
]
Ankit Aggarwal commented on SLING-7620:
---------------------------------------
[~marett], [~mpetria]
I have raised the PR[0]. Please review.
[0] [https://github.com/apache/sling-org-apache-sling-distribution-core/pull/7]
cc: [~chetanm]
> Bypassing Ghost Packages in SCD
> -------------------------------
>
> Key: SLING-7620
> URL: https://issues.apache.org/jira/browse/SLING-7620
> Project: Sling
> Issue Type: Bug
> Components: Content Distribution
> Affects Versions: Content Distribution Core 0.2.8
> Reporter: Ankit Aggarwal
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Sometimes the distribution package gets deleted from the queue [0] but the
> actual item in the distribution queue [1] is not deleted leading it become a
> Ghost Package. Because of this same item is picked up again and again
> resulting in queue blocking and repeated warnings:
> {quote}19.03.2018 15:10:04.130 *WARN* [10.43.32.54 [1521486603947] POST
> /libs/sling/distribution/services/exporters/socialpubsync-reverse HTTP/1.1]
> org.apache.sling.distribution.packaging.impl.exporter.AgentDistributionPackageExporter
> cannot get package DistributionPackageInfo\{ request.type=ADD,
> request.paths=[/home/groups/umuc/tus/cmit/cmit372/2188/027346-01-2188-OL1-6380/tnWOVAWBzaSHIzeDWana/rep:policy]}
> {quote}
> We need to make the code fail safe to handle such situations i.e. deleting
> the item in the distribution queue if it is not able to find the
> corresponding package.
> [0] /var/sling/distribution/packages/socialpubsync-vlt/data
> [1]
> /var/eventing/jobs/unassigned/org.apache.sling.distribution.queue.socialpubsync-reverse.default
>
> cc: [~marett], [~mpetria]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)