Uploaded image for project: 'Hippo Repository'
  1. Hippo Repository
  2. REPO-963

Groovy updaters fail due to incorrect resultFetchSize configuration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.24.09.1
    • Fix Version/s: 2.24.13
    • Labels:
      None
    • Similar issues:

      Description

      This has to do with the batch size in the Groovy updater in combination with org.apache.jackrabbit.core.query.lucene.QueryResultImpl.LazyScoreNodeIteratorImpl#fetchNext and org.apache.jackrabbit.core.query.lucene.QueryResultImpl#getResults which reexecutes the query at the beginning of a new batch and skips the amount of results it already iterated over. However after the groovy updater batch a session save happens and these changes will be persisted and lucene indexes will be updated. Now the second time the query happens the first N items will not be in the result set of the query anymore (maybe somebody searches for a property and the property has been removed in the meantime). This causes the skip to skip over the resulting items.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jsheriff Junaidh Kadhar Sheriff
                Reporter:
                jreijn Jeroen Reijn (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: