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

    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

        1. oak-9354.patch
          3 kB
          Manfred Baedke

        Activity

          People

            baedke Manfred Baedke
            baedke Manfred Baedke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: