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

Regression: descending iterator starts at wrong doc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • .master, 4.5.1
    • .master
    • forestdb
    • None
    • Untriaged
    • MacOSX 64-bit
    • Unknown
    • ForestDB: Oct 17 - Nov 4

    Description

      After updating ForestDB from commit fd41b293 (stable branch 4/23/16) to bc0e6044 (current stable branch), a Couchbase Lite unit test is failing. The test has to do with descending-order iteration starting with a call to fdb_iterator_seek_to_max, where the end_key doesn't exist.

      In this test the database contains documents with keys doc-000, doc-001 ... doc-099.

      • fdb_iter_init(start_key="doc-024", end_key="doc-029b", opt=0)
      • fdb_iter_seek_to_max()
      • fdb_iter_get()

      Expected: Reads document doc-029
      Actual: Reads document doc-030

      Attachments

        Issue Links

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

          Activity

            People

              jens Jens Alfke
              jens Jens Alfke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty