jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JCR-3460) PropertyIndex uses TraversingCursor but should not
Date Thu, 22 Nov 2012 12:06:57 GMT

     [ https://issues.apache.org/jira/browse/JCR-3460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Thomas Mueller resolved JCR-3460.

    Resolution: Fixed

Revision 1412514
> PropertyIndex uses TraversingCursor but should not
> --------------------------------------------------
>                 Key: JCR-3460
>                 URL: https://issues.apache.org/jira/browse/JCR-3460
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: query
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
> The org.apache.jackrabbit.oak.plugins.index.property.PropertyIndex uses the traversing
cursor (that traverses over the whole repository) when there is no index. This is not how
the index mechanism is supposed to work: if there is no property index, then the cost function
of the property index should return infinity or max value, so that the property index isn't
> According to my test the PropertyIndex never really falls back to traversing, so this
might just be "defensive programming". However, in this case it would be better if the code
would throw an exception, otherwise we risk not seeing the bug in the PropertyIndex cost method.

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

View raw message