Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-2600

VLV index: debugsearchindex does not display the expected count of entries

    Details

    • Type: Bug
    • Status: Done
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.3
    • Fix Version/s: 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Found with OpenDJ-3.0.0 rev 185acee3ba68d8da1782007eebacb3701dc996d6

      When trying to use debugsearchindex for vlv index, for a total count of 10 entries, we want to hit target index of 2 in the result set and 6 entries after offset. We then expect 7 entries to be found.

      We get the following result:

      ./opendj/bin/ldapsearch -h localhost -p 1390 -D "cn=myself" -w password -T -b "dc=com" --sortOrder +givenName -G 0:6:2:0 ""(givenName=*)"" givenName debugsearchindex
      
      dn: cn=debugsearch
      debugsearchindex: vlv=[INDEX:vlv.test_vlv_index][COUNT:7] final=[COUNT:7]
      ...
      

      Whilst with 2.6, we get the following:

      ./opendj/bin/ldapsearch -h localhost -p 1390 -D "cn=myself" -w password -T -b "dc=com" --sortOrder +givenName -G 0:6:2:0 ""(givenName=*)"" givenName debugsearchindex
      
      dn: cn=debugsearch
      debugsearchindex: vlv=[INDEX:vlv.test_vlv_index][COUNT:10] final=[COUNT:7]
      ...
      

      In 3.0.0, debugsearchindex does not display the right number in the first count, which should be the total number of entries found.

        Attachments

          Activity

            People

            • Assignee:
              matthew Matthew Swift
              Reporter:
              cforel carole forel
              Dev Assignee:
              Matthew Swift
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: