Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1899

Ordered index fails with old index content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.2, 1.1.0
    • query
    • None

    Description

      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.

      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)
      

      Attachments

        1. OAK-1899.patch
          3 kB
          Davide Giannella
        2. OAK-1899-r2.patch
          3 kB
          Davide Giannella

        Activity

          People

            edivad Davide Giannella
            thomasm Thomas Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: