Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1389

default collection check returns false for a _default._default collection

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.1.0
    • 3.1.1
    • None
    • None
    • 1

    Description

      Concerned code:

      https://github.com/couchbase/libcouchbase/blob/21284a28b333a0695ce1e221847d920d9b305422/src/instance.cc#L932

      Here, lcb returns true if the passed scope.collection is not equal to "_default".
      This incorrect return value is then used for returning a "LCB_ERR_SDK_FEATURE_UNAVAILABLE" for a default collection back to the caller (here eventing).

      Effect on eventing : This broke almost all of eventing's upgrade tests where a 7.0 eventing consumer (using 3.1.0 lcb) tries to run a KV operation against a 6.6.x memcached.

      Attachments

        Issue Links

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

          Activity

            abhishek.jindal Abhishek Jindal created issue -
            abhishek.jindal Abhishek Jindal made changes -
            Field Original Value New Value
            Priority Major [ 3 ] Critical [ 2 ]
            abhishek.jindal Abhishek Jindal made changes -
            Link This issue blocks MB-45261 [ MB-45261 ]

            Hi Sergey Avseyev - Just wanted to check for any updates on the above or on the submitted patch. Asking because eventing upgrade tests won't be successful without this change.

            abhishek.jindal Abhishek Jindal added a comment - Hi Sergey Avseyev - Just wanted to check for any updates on the above or on the submitted patch. Asking because eventing upgrade tests won't be successful without this change.
            avsej Sergey Avseyev made changes -
            Status New [ 10003 ] Open [ 1 ]
            avsej Sergey Avseyev made changes -
            Fix Version/s 3.1.1 [ 17272 ]
            avsej Sergey Avseyev made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]

            Build couchbase-server-7.0.0-5043 contains libcouchbase commit a050e81 with commit message:
            CCBC-1389 : default collection check returns false for a default collection

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-5043 contains libcouchbase commit a050e81 with commit message: CCBC-1389 : default collection check returns false for a default collection

            People

              avsej Sergey Avseyev
              abhishek.jindal Abhishek Jindal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty