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

Bertrand Delacretaz updated SLING-4058:
---------------------------------------
    Attachment: oak-12500nodes-logs.zip

I now have a test case that's easy to reproduce, from SLING-3599.

As shown in the attached oak-12500nodes-logs.zip there's a delay of a bit more 
than 10 seconds (on my box) when the CommonTests.testOsgiResourceEvents [1] 
creates 12'500 nodes and waits for the corresponding observation events. 

The delay happens before the first event is delivered, and after that the other 
events follow quickly.

To reproduce, do a full build of the Sling trunk revision 1633798 (with 
-DskipTests if desired) and then:

{code}
cd bundles/jcr/it-jackrabbit-oak
mvn clean verify -Dit.test=OakRepositoryIT#testOsgiResourceEvents 
-Dpax.vm.options="-Dtest.scale=5"
{code}

The interesting parts in the test log that appears on the console are:

{code}
23.10.2014 16:37:19.333 *INFO* [RMI TCP Connection(1)-10.132.4.173] 
org.apache.sling.jcr.repository.it.OakRepositoryIT Added 12500 nodes, checking 
what ResourceEventListener got...
...
23.10.2014 16:37:32.204 *INFO* [pool-4-thread-2] 
org.apache.sling.jcr.repository.it.ResourceEventListener Got events for 0 paths 
so far, last path=/testOsgiResourceEvents_1_14140750377373095
23.10.2014 16:37:32.344 *INFO* [Thread-43] 
org.apache.sling.jcr.repository.it.ResourceEventListener Got events for 1000 
paths so far, last path=/testOsgiResourceEvents_1_141407503773710371
23.10.2014 16:37:32.443 *INFO* [Thread-43] 
org.apache.sling.jcr.repository.it.ResourceEventListener Got events for 2000 
paths so far, last path=/testOsgiResourceEvents_1_141407503
{code}

In this case we see that content has been saved at 16:37:19 and the first event 
only appears at 16:37:32

[1] 
https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/it-jackrabbit-oak/src/test/java/org/apache/sling/jcr/repository/it/CommonTests.java

> ResourceResolverProxyTest fails on Oak, 10 second delay in observation
> ----------------------------------------------------------------------
>
>                 Key: SLING-4058
>                 URL: https://issues.apache.org/jira/browse/SLING-4058
>             Project: Sling
>          Issue Type: Bug
>          Components: Oak
>         Environment: macosx 10.9.5, java version "1.7.0_45", oak 1.0.7
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>         Attachments: oak-12500nodes-logs.zip
>
>
> As seen at https://builds.apache.org/view/S-Z/view/Sling/job/sling-oak-it-1.6 
> and on my box, tests fail with
> bq. Timeout waiting for 
> org/apache/sling/api/resource/ResourceResolverMapping/CHANGED event, after 
> 10000 msec, 
> and as a result the test takes age to run.



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

Reply via email to