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

Michael Dürig commented on OAK-1491:
------------------------------------

Seems like all of the above failures are test artefact that only occur in some 
rather specific environments. 

* The failures of {{ObservationRefreshTest}} and {{BackgroundObserverTest}} 
where caused by the observation revision queue filling up while the tests would 
wait for pending events. In such a scenario pending events would be delayed up 
to a subsequent commit. Since the test is already waiting this would never 
happen and the wait would eventually time out. I fixed this in the tests by 
ensuring the observation revision queue is sufficiently large to hold all 
commit. 

* The failures of {{ObservationTest}} and {{CompatibilityIssuesTest}} where 
caused by simple time outs in environments that couldn't cope with the load. I 
made {{ObservationTest}} to not run the fixtures parallel any more and 
increased the timeouts. 

See http://svn.apache.org/r1593213

I keep the issue open a bit longer until we have sufficient feedback from our 
CIs backing above observations.

> ObservationTest failure on Windows
> ----------------------------------
>
>                 Key: OAK-1491
>                 URL: https://issues.apache.org/jira/browse/OAK-1491
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, jcr
>         Environment: http://ci.apache.org/builders/oak-trunk-win7
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>              Labels: observation
>             Fix For: 1.1
>
>
> {{ObservationTest}} fails often on some Windows machines:
> {noformat}
> pathFilter[3](org.apache.jackrabbit.oak.jcr.observation.ObservationTest)  
> Time elapsed: 0.864 sec  <<< FAILURE!
> java.lang.AssertionError: Missing events: [path = 
> /events/only/here/below/this, type = 1]
>       at org.junit.Assert.fail(Assert.java:93)
>       at org.junit.Assert.assertTrue(Assert.java:43)
>       at 
> org.apache.jackrabbit.oak.jcr.observation.ObservationTest.pathFilter(ObservationTest.java:315)
> {noformat}
> and
> {noformat}
> filterPropertyOfParent[2](org.apache.jackrabbit.oak.jcr.observation.ObservationTest)
>   Time elapsed: 0.88 sec  <<< FAILURE!
> java.lang.AssertionError: Missing events: [path = 
> /test_node/a/jcr:primaryType, type = 4, path = /test_node/a/foo, type = 4, 
> path = /test_node/a/b, type = 1]
>       at org.junit.Assert.fail(Assert.java:93)
>       at org.junit.Assert.assertTrue(Assert.java:43)
>       at 
> org.apache.jackrabbit.oak.jcr.observation.ObservationTest.filterPropertyOfParent(ObservationTest.java:614)
> {noformat}
> I have the suspicion this is an issue with the test similar to OAK-1486



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to