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 "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2012/11/22 14:58:58 UTC
[jira] [Reopened] (OAK-308) NodeIterator limit and offset don't
work as expected
[ https://issues.apache.org/jira/browse/OAK-308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Parvulescu reopened OAK-308:
---------------------------------
reopening, the tests still fail, see v3 of the patch on JCR-237
plus, there is now an extra one that fails {{SQL2OffsetLimitTest}}: testOffsetEqSize and testOffsetGtSize, both with the same trace [0].
[0]
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.remove(ArrayList.java:390)
at org.apache.jackrabbit.oak.query.Query.keepFirst(Query.java:407)
at org.apache.jackrabbit.oak.query.Query.getRows(Query.java:352)
at org.apache.jackrabbit.oak.query.ResultImpl$1.iterator(ResultImpl.java:66)
at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl$1.<init>(QueryResultImpl.java:101)
at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl.getRows(QueryResultImpl.java:99)
at org.apache.jackrabbit.commons.JcrUtils.getRows(JcrUtils.java:473)
at org.apache.jackrabbit.core.query.SQL2OffsetLimitTest.qrToPaths(SQL2OffsetLimitTest.java:161)
at org.apache.jackrabbit.core.query.SQL2OffsetLimitTest.testOffsetEqSize(SQL2OffsetLimitTest.java:108)
> NodeIterator limit and offset don't work as expected
> ----------------------------------------------------
>
> Key: OAK-308
> URL: https://issues.apache.org/jira/browse/OAK-308
> Project: Jackrabbit Oak
> Issue Type: Sub-task
> Components: jcr
> Reporter: Alex Parvulescu
> Assignee: Thomas Mueller
>
> Another failing test: LimitAndOffsetTest#testOffsetAndSkip [0]
> The only different feature of this test is the #skip call, so I'm assuming this is where the problem is.
> [0] http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/LimitAndOffsetTest.java?view=markup#l126
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira