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

Aggregation cursor introduces doubles in the result set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0, 1.1.0
    • 1.0.7, 1.1.0
    • core
    • None

    Description

      In some cases (double aggregation) the aggregation cursor in some cases will introduce doubles in the result set by replacing some good results.
      This makes the result set look like (for the attached test case):

      "/myFolder", "/myFolder", "/myFolder/myFile/jcr:content"
      

      instead of

      "/myFolder", "/myFolder/myFile", "/myFolder/myFile/jcr:content"
      

      What actually happens is the cursor will replace the current row value with the new one ("/myFolder/myFile" will turn into "/myFolder") in the #next call. Not only this replaces the good value with the double, but it also skips the de-duplication bits, resulting in an incomplete result set with doubles sprinkled in.

      Attachments

        1. OAK-2118.patch
          1 kB
          Alex Deparvu

        Activity

          People

            stillalex Alex Deparvu
            stillalex Alex Deparvu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: