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

Error while running lcb_open in situational test

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.0.0-beta2
    • 3.0.0-beta1
    • None

    Description

      Running lcb_open on a cluster instance gives me the error: LCB_EINVAL - "The instance has been associated with the bucket already, sorry". This is despite no bucket being named in the connection string. Also using lcb_cntl to get the bucket name before (and after) calling lcb_open returns (null), suggesting that there isn't a bucket associated with the instance. Probing in lcb_open shows that LCBVB_BUCKET_NAME(cfg)=="default" somehow. Perhaps the bucket is being found from the confmon configurations?

       

      The code being run is sdkd-cpp, specifically this new version: http://review.couchbase.org/c/116964/

      The error occurs in Handle.cpp -> connect(). The code closely follows the example on the docs: https://docs.couchbase.com/c-sdk/3.0/hello-world/start-using-sdk.html and in other examples within lcb examples/minimal.

       

      Note: A 'default' bucket is created by sdkdclient-ng prior to sdkd-cpp attempting to open the bucket.

       

      Attachments

        Issue Links

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

          Activity

            People

              avsej Sergey Avseyev
              will.broadbelt Will Broadbelt
              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