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

Chetan Mehrotra edited comment on OAK-1813 at 5/13/14 7:42 AM:
---------------------------------------------------------------

Also seeing failure (though random) in following

{noformat}
Failed tests:   
testLastRevRestore[0](org.apache.jackrabbit.oak.plugins.document.LastRevSingleNodeRecoveryTest):
 expected:<8> but was:<0>
  difference(org.apache.jackrabbit.oak.plugins.document.RevisionTest)
  
testIsRecoveryRequired[0](org.apache.jackrabbit.oak.plugins.document.LastRevRecoveryAgentTest):
 expected:<r145f48008a0-3ad14-2> but was:<null>
  
testIsRecoveryRequired[1](org.apache.jackrabbit.oak.plugins.document.LastRevRecoveryAgentTest):
 expected:<r145f48008a0-3ad25-2> but was:<null>

{noformat}

RevisionTest

{noformat}
Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.511 sec <<< 
FAILURE!
difference(org.apache.jackrabbit.oak.plugins.document.RevisionTest)  Time 
elapsed: 0.001 sec  <<< FAILURE!
java.lang.AssertionError
        at org.junit.Assert.fail(Assert.java:92)
        at org.junit.Assert.assertTrue(Assert.java:43)
        at org.junit.Assert.assertTrue(Assert.java:54)
        at 
org.apache.jackrabbit.oak.plugins.document.RevisionTest.difference(RevisionTest.java:74)
{noformat}

Above one does not fail when directly run on my machine. [~tmueller] Can you 
have look

{noformat}
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec <<< 
FAILURE!
testIsRecoveryRequired[0](org.apache.jackrabbit.oak.plugins.document.LastRevRecoveryAgentTest)
  Time elapsed: 0.003 sec  <<< FAILURE!
java.lang.AssertionError: expected:<r145f48008a0-3ad14-2> but was:<null>
        at org.junit.Assert.fail(Assert.java:93)
        at org.junit.Assert.failNotEquals(Assert.java:647)
        at org.junit.Assert.assertEquals(Assert.java:128)
        at org.junit.Assert.assertEquals(Assert.java:147)
        at 
org.apache.jackrabbit.oak.plugins.document.LastRevRecoveryAgentTest.testIsRecoveryRequired(LastRevRecoveryAgentTest.java:138)
testIsRecoveryRequired[1](org.apache.jackrabbit.oak.plugins.document.LastRevRecoveryAgentTest)
  Time elapsed: 0.019 sec  <<< FAILURE!
java.lang.AssertionError: expected:<r145f48008a0-3ad25-2> but was:<null>
        at org.junit.Assert.fail(Assert.java:93)
        at org.junit.Assert.failNotEquals(Assert.java:647)
        at org.junit.Assert.assertEquals(Assert.java:128)
        at org.junit.Assert.assertEquals(Assert.java:147)
        at 
org.apache.jackrabbit.oak.plugins.document.LastRevRecoveryAgentTest.testIsRecoveryRequired(LastRevRecoveryAgentTest.java:138)
{noformat}

This one also does not fail when executed directly

[~amitjain] Can you have a look and see if they can be seen at your end


was (Author: chetanm):
Also seeing failure (though random) in following

{noformat}
Failed tests:   
testLastRevRestore[0](org.apache.jackrabbit.oak.plugins.document.LastRevSingleNodeRecoveryTest):
 expected:<8> but was:<0>
  difference(org.apache.jackrabbit.oak.plugins.document.RevisionTest)
  
testIsRecoveryRequired[0](org.apache.jackrabbit.oak.plugins.document.LastRevRecoveryAgentTest):
 expected:<r145f48008a0-3ad14-2> but was:<null>
  
testIsRecoveryRequired[1](org.apache.jackrabbit.oak.plugins.document.LastRevRecoveryAgentTest):
 expected:<r145f48008a0-3ad25-2> but was:<null>

{noformat}

RevisionTest

{noformat}
Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.511 sec <<< 
FAILURE!
difference(org.apache.jackrabbit.oak.plugins.document.RevisionTest)  Time 
elapsed: 0.001 sec  <<< FAILURE!
java.lang.AssertionError
        at org.junit.Assert.fail(Assert.java:92)
        at org.junit.Assert.assertTrue(Assert.java:43)
        at org.junit.Assert.assertTrue(Assert.java:54)
        at 
org.apache.jackrabbit.oak.plugins.document.RevisionTest.difference(RevisionTest.java:74)
{noformat}

Above one does not fail when directly run on my machine

{noformat}
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec <<< 
FAILURE!
testIsRecoveryRequired[0](org.apache.jackrabbit.oak.plugins.document.LastRevRecoveryAgentTest)
  Time elapsed: 0.003 sec  <<< FAILURE!
java.lang.AssertionError: expected:<r145f48008a0-3ad14-2> but was:<null>
        at org.junit.Assert.fail(Assert.java:93)
        at org.junit.Assert.failNotEquals(Assert.java:647)
        at org.junit.Assert.assertEquals(Assert.java:128)
        at org.junit.Assert.assertEquals(Assert.java:147)
        at 
org.apache.jackrabbit.oak.plugins.document.LastRevRecoveryAgentTest.testIsRecoveryRequired(LastRevRecoveryAgentTest.java:138)
testIsRecoveryRequired[1](org.apache.jackrabbit.oak.plugins.document.LastRevRecoveryAgentTest)
  Time elapsed: 0.019 sec  <<< FAILURE!
java.lang.AssertionError: expected:<r145f48008a0-3ad25-2> but was:<null>
        at org.junit.Assert.fail(Assert.java:93)
        at org.junit.Assert.failNotEquals(Assert.java:647)
        at org.junit.Assert.assertEquals(Assert.java:128)
        at org.junit.Assert.assertEquals(Assert.java:147)
        at 
org.apache.jackrabbit.oak.plugins.document.LastRevRecoveryAgentTest.testIsRecoveryRequired(LastRevRecoveryAgentTest.java:138)
{noformat}

This one also does not fail when executed directly



> LastRevSingleNodeRecoveryTest fails with Mongo
> ----------------------------------------------
>
>                 Key: OAK-1813
>                 URL: https://issues.apache.org/jira/browse/OAK-1813
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: mongomk
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>
> Following exception is observed when running the testcases in oak 
> {noformat}
> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.568 sec <<< 
> FAILURE!
> testLastRevRestore[0](org.apache.jackrabbit.oak.plugins.document.LastRevSingleNodeRecoveryTest)
>   Time elapsed: 0.368 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<8> but was:<0>
>         at org.junit.Assert.fail(Assert.java:93)
>         at org.junit.Assert.failNotEquals(Assert.java:647)
>         at org.junit.Assert.assertEquals(Assert.java:128)
>         at org.junit.Assert.assertEquals(Assert.java:472)
>         at org.junit.Assert.assertEquals(Assert.java:456)
>         at 
> org.apache.jackrabbit.oak.plugins.document.LastRevSingleNodeRecoveryTest.testLastRevRestore(LastRevSingleNodeRecoveryTest.java:134)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Frame
> {noformat}
> Testcase passes when run individually but fails when the 
> LastRevSingleNodeRecoveryTest is run complete



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

Reply via email to