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] [Commented] (OAK-1491) ObservationTest failure on Windows
Date Thu, 13 Mar 2014 13:17:42 GMT

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

Julian Reschke commented on OAK-1491:
-------------------------------------

I have also tried a modified version of the test that uses Workspace.move instead:

{code}
--- oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/JackrabbitNodeTest.java(revision 1577126)
+++ oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/JackrabbitNodeTest.java(working copy)
@@ -100,7 +100,8 @@
             String name = n.getName();

             JackrabbitNode node = (JackrabbitNode) n;
-            node.rename(name + 'X');
+            // node.rename(name + 'X');
+            n.getSession().getWorkspace().move(n.getPath(), n.getPath() + "X");
             superuser.save();

             boolean foundMove = false;
{code}

but see the same kind of failures (so it doesn't seem to be caused by the use of JackrabbitNode.rename()).

> 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