You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ian Boston (JIRA)" <ji...@apache.org> on 2016/08/03 08:31:20 UTC

[jira] [Commented] (SLING-5870) Switch event ITs to use Oak

    [ https://issues.apache.org/jira/browse/SLING-5870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15405569#comment-15405569 ] 

Ian Boston commented on SLING-5870:
-----------------------------------

Have you tried not using PaxExam and using an OSGi container provisioned by Crankstart with the desired components. This worked for and was highly flexible when doing https://github.com/ieb/sling/tree/jobs_28/contrib/extensions/jobs/it running https://github.com/ieb/sling/tree/jobs_28/contrib/extensions/jobs/it-services initially I had Oak running, but then cut the provisioning model right back to a bare minimum. The container starts in a few seconds, and config is copy and paste from a full provisioning model. I am sure I copied the approach from somewhere else in Sling.

> Switch event ITs to use Oak
> ---------------------------
>
>                 Key: SLING-5870
>                 URL: https://issues.apache.org/jira/browse/SLING-5870
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Robert Munteanu
>             Fix For: Event 4.2.0
>
>         Attachments: 0001-SLING-5870-Switch-event-ITs-to-use-Oak.patch, 0001-SLING-5870-Switch-event-ITs-to-use-Oak.patch, 0002-SLING-5870-Switch-event-ITs-to-use-Oak.patch, 0002-SLING-5870-Switch-event-ITs-to-use-Oak.patch, 0003-SLING-5870-Switch-event-ITs-to-use-Oak.patch, 0004-SLING-5870-Switch-event-ITs-to-use-Oak.patch, SLING-5870.testing-paxexam.patch, SLING-5870.zip, test.log
>
>
> The Event ITs sometimes fail on Jenkins, and the errors seem to indicate inconsistencies in the repository, e.g.
> {code}19.07.2016 09:57:31.489 *WARN* [Apache Sling JCR Resource Event Queue Processor] org.apache.sling.jcr.resource.internal.JcrResourceListener processOsgiEventQueue: Unexpected problem processing event {path=/var/eventing/jobs/assigned/f96f5677-4d3b-454d-9dc1-c2ee9270b35c/sling.chaos.round.4/2016/7/19/9/53/f96f5677-4d3b-454d-9dc1-c2ee9270b35c_2931, resourceChangedAttributes=[Ljava.lang.String;@51e6a8e1, resourceAddedAttributes=[Ljava.lang.String;@1447afb0, userid=admin}
> org.apache.sling.api.SlingException: Problem retrieving node based resource /var/eventing/jobs/assigned/f96f5677-4d3b-454d-9dc1-c2ee9270b35c/sling.chaos.round.4/2016/7/19/9/53/f96f5677-4d3b-454d-9dc1-c2ee9270b35c_2931
> 	at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.getResource(JcrResourceProvider.java:156)
> 	at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.getResource(JcrResourceProvider.java:143)
> 	at org.apache.sling.resourceresolver.impl.tree.ResourceProviderFactoryHandler.getResource(ResourceProviderFactoryHandler.java:113)
> 	at org.apache.sling.resourceresolver.impl.tree.ResourceProviderEntry.getResourceFromProviders(ResourceProviderEntry.java:401)
> 	at org.apache.sling.resourceresolver.impl.tree.ResourceProviderEntry.getInternalResource(ResourceProviderEntry.java:356)
> 	at org.apache.sling.resourceresolver.impl.tree.ResourceProviderEntry.getResource(ResourceProviderEntry.java:138)
> 	at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.getAbsoluteResourceInternal(ResourceResolverImpl.java:988)
> 	at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.getResourceInternal(ResourceResolverImpl.java:635)
> 	at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.getResource(ResourceResolverImpl.java:590)
> 	at org.apache.sling.jcr.resource.internal.JcrResourceListener.processOsgiEventQueue(JcrResourceListener.java:340)
> 	at org.apache.sling.jcr.resource.internal.JcrResourceListener$1.run(JcrResourceListener.java:107)
> 	at java.lang.Thread.run(Thread.java:744)
> Caused by: javax.jcr.PathNotFoundException: /var/eventing/jobs/assigned/f96f5677-4d3b-454d-9dc1-c2ee9270b35c/sling.chaos.round.4/2016/7/19/9/53/f96f5677-4d3b-454d-9dc1-c2ee9270b35c_2931
> 	at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:552)
> 	at org.apache.jackrabbit.core.session.SessionItemOperation$4.perform(SessionItemOperation.java:97)
> 	at org.apache.jackrabbit.core.session.SessionItemOperation$4.perform(SessionItemOperation.java:93)
> 	at org.apache.jackrabbit.core.session.SessionItemOperation.perform(SessionItemOperation.java:187)
> 	at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
> 	at org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:361)
> 	at org.apache.jackrabbit.core.SessionImpl.getItem(SessionImpl.java:786)
> 	at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.createResource(JcrResourceProvider.java:211)
> 	at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.getResource(JcrResourceProvider.java:154)
> 	... 11 common frames omitted{code}
> Moving to Oak might help with these issues, and it's anyway a good idea since the default Launchpad only includes Sling ATM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)