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 2017/03/02 10:40:45 UTC

[jira] [Resolved] (SLING-6589) DistributionPackageUtils#disposable should handle hanging packages

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

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

> DistributionPackageUtils#disposable should handle hanging packages
> ------------------------------------------------------------------
>
>                 Key: SLING-6589
>                 URL: https://issues.apache.org/jira/browse/SLING-6589
>             Project: Sling
>          Issue Type: Bug
>          Components: Content Distribution
>    Affects Versions: Content Distribution Core 0.2.0
>            Reporter: Timothee Maret
>            Assignee: Timothee Maret
>             Fix For: Content Distribution Core 0.2.6
>
>
> Before the fix SLING-6503, some package could have been left hanging without {{refs}} node, thus causing the async package collection to log
> {code}
> 01.03.2017 11:20:52.921 *ERROR* [sling-default-102-Registered Service.3422] org.apache.sling.distribution.packaging.impl.ResourceDistributionPackage cannot check if package is disposable
> javax.jcr.PathNotFoundException: refs
> 	at org.apache.jackrabbit.oak.jcr.session.NodeImpl$7.perform(NodeImpl.java:542)
> 	at org.apache.jackrabbit.oak.jcr.session.NodeImpl$7.perform(NodeImpl.java:536)
> 	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:208)
> 	at org.apache.jackrabbit.oak.jcr.session.ItemImpl.perform(ItemImpl.java:112)
> 	at org.apache.jackrabbit.oak.jcr.session.NodeImpl.getNode(NodeImpl.java:536)
> 	at org.apache.sling.distribution.packaging.impl.DistributionPackageUtils.disposable(DistributionPackageUtils.java:321)
> 	at org.apache.sling.distribution.packaging.impl.ResourceDistributionPackage.disposable(ResourceDistributionPackage.java:119)
> 	at org.apache.sling.distribution.packaging.impl.ResourceDistributionPackageCleanup.run(ResourceDistributionPackageCleanup.java:63)
> 	at org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:118)
> 	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)
> {code}
> Those hanging packages can't be produce thanks to SLING-6503, but the existing ones must be handled. In order to be on the safe side, the packages should be considered as non-collectable.



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