Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-58589

Invalid end-search-term of range scan returns all the docs present in collection from the start-key

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.6.0
    • 7.6.0
    • couchbase-bucket
    • Enterprise Edition 7.6.0 build 1430

    Description

      Description
      when hitting range scan with ending key size > 250 bytes and a valid starting key , scan returns all the documents starting with the start key , although vice versa is not true if the first key is invalid scan returns 0 docs even with second key valid.

      Steps:
      Initialise cluster with 3 nodes
      Create 1 bucket with some data load
      When attempting range scan with following keys

      start key    (valid  , present in the collection) aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-0 

      ending key (invalid , 276 bytes) aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-19999

      result -  599999 returned (all documents present in this 'range_scan_collection-0' collection)

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              pulkit.matta Pulkit Matta
              pulkit.matta Pulkit Matta
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty