You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/04/13 11:22:12 UTC

[jira] [Commented] (OAK-2689) Test failure: QueryResultTest.testGetSize

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

Chetan Mehrotra commented on OAK-2689:
--------------------------------------

Note that as per OAK-300 the behaviour for getSize would vary from -1 to actual count (< 100) if the execution related to determining query count performs in within 100 ms. Probably that explains the random behaviour. Specially for DocumentNS

[~tmueller] Thoughts?

> Test failure: QueryResultTest.testGetSize
> -----------------------------------------
>
>                 Key: OAK-2689
>                 URL: https://issues.apache.org/jira/browse/OAK-2689
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>         Environment: Jenkins, Ubuntu: https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/
>            Reporter: Michael Dürig
>              Labels: CI, Jenkins
>             Fix For: 1.3.0
>
>
> {{org.apache.jackrabbit.core.query.QueryResultTest.testGetSize}} fails every couple of builds:
> {noformat}
> junit.framework.AssertionFailedError: Wrong size of NodeIterator in result expected:<48> but was:<-1>
> 	at junit.framework.Assert.fail(Assert.java:50)
> 	at junit.framework.Assert.failNotEquals(Assert.java:287)
> 	at junit.framework.Assert.assertEquals(Assert.java:67)
> 	at junit.framework.Assert.assertEquals(Assert.java:134)
> 	at org.apache.jackrabbit.core.query.QueryResultTest.testGetSize(QueryResultTest.java:47)
> {noformat}
> Failure seen at builds: 29, 39, 59, 61
> See e.g. https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/59/jdk=jdk-1.6u45,label=Ubuntu,nsfixtures=DOCUMENT_NS,profile=unittesting/testReport/junit/org.apache.jackrabbit.core.query/QueryResultTest/testGetSize/



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