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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2014/06/20 13:19:24 UTC

[jira] [Reopened] (OAK-1899) Ordered index fails with old index content

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

Davide Giannella reopened OAK-1899:
-----------------------------------


{code}
java.lang.ArrayIndexOutOfBoundsException: 3
        at org.apache.jackrabbit.oak.plugins.index.property.strategy.OrderedContentMirrorStoreStrategy.setPropertyNext(OrderedContentMirrorStoreStrategy.java:1001)
        at org.apache.jackrabbit.oak.plugins.index.property.strategy.OrderedContentMirrorStoreStrategy.prune(OrderedContentMirrorStoreStrategy.java:174)
        at org.apache.jackrabbit.oak.plugins.index.property.strategy.ContentMirrorStoreStrategy.remove(ContentMirrorStoreStrategy.java:103)
        at org.apache.jackrabbit.oak.plugins.index.property.strategy.ContentMirrorStoreStrategy.update(ContentMirrorStoreStrategy.java:77)
        at org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexEditor.leave(PropertyIndexEditor.java:261)
        at org.apache.jackrabbit.oak.plugins.index.property.OrderedPropertyIndexEditor.leave(OrderedPropertyIndexEditor.java:42)
{code}

sorry about that

> Ordered index fails with old index content
> ------------------------------------------
>
>                 Key: OAK-1899
>                 URL: https://issues.apache.org/jira/browse/OAK-1899
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>            Reporter: Thomas Mueller
>            Assignee: Davide Giannella
>             Fix For: 1.1, 1.0.2
>
>         Attachments: OAK-1899-r2.patch, OAK-1899.patch
>
>
> With the latest changes, the ordered index no longer works with old index data. When running the latest Oak 1.0.2 snapshot run against an Oak 1.0.0 repository with an existing ordered index, the index fails with the exception below.
> As a workaround, the ordered index can be manually re-built. Either the index re-build needs to be automatic, or the ordered index needs to work with the old index content.
> {noformat}
> java.lang.IndexOutOfBoundsException: index (3) must be less than size (1)
>     at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:306)
>     at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:285)
>     at org.apache.jackrabbit.oak.plugins.segment.SegmentPropertyState.getValue(SegmentPropertyState.java:157)
>     at org.apache.jackrabbit.oak.plugins.index.property.strategy.OrderedContentMirrorStoreStrategy.getPropertyNext(OrderedContentMirrorStoreStrategy.java:1024)
> {noformat}



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