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

SelectorImpl#getSize(SizePrecision, long) returns -1 after the internal cursor has been processed

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • oak-search
    • None

    Description

      While this is technically not a bug because it doesn't break the method contract, it is completely unnecessary and particularly strange in case of a query with 0 results, because in this case it will return -1 even when the object has just been created. This is particularly annoying if the query is part of a union.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            baedke Manfred Baedke
            baedke Manfred Baedke

            Dates

              Created:
              Updated:

              Slack

                Issue deployment