Details
-
Bug
-
Resolution: Fixed
-
Critical
-
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
- relates to
-
MB-36700 Server auto-selects the bucket using username
- Closed