jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (OAK-1491) ObservationTest failure on Windows
Date Wed, 12 Mar 2014 15:07:59 GMT

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

Julian Reschke edited comment on OAK-1491 at 3/12/14 3:07 PM:
--------------------------------------------------------------

On a desktop Win7 corei7 I occasionally see JackRabbitNodeTest.testRenameEventHandling failing
("Expected NODE_MOVED event upon renaming a node."). It appears that this does not happen
when the test class is run in isolation; maybe a timing problem caused by GC? (the code waits
for 5sec for the event)

In the meantime I modified the test to collect more information, and it appears that a subsequent
event indeed get's delivered; meaning that the event not only does not show up in time but
indeed is lost. Diagnostics:

junit.framework.AssertionFailedError: Expected NODE_MOVED event upon renaming a node (received:
none; next event after additional addNode/save operation: type 1 1394636315281ms /testroot/aXYZ)



was (Author: reschke):
On a desktop Win7 corei7 I occasionally see JackRabbitNodeTest.testRenameEventHandling failing
("Expected NODE_MOVED event upon renaming a node."). It appears that this does not happen
when the test class is run in isolation; maybe a timing problem caused by GC? (the code waits
for 5sec for the event)

> ObservationTest failure on Windows
> ----------------------------------
>
>                 Key: OAK-1491
>                 URL: https://issues.apache.org/jira/browse/OAK-1491
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>         Environment: http://ci.apache.org/builders/oak-trunk-win7
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>             Fix For: 0.20
>
>
> {{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)

Mime
View raw message