Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-339

CreateBucket when no buckets exist

    XMLWordPrintable

Details

    • Task
    • Resolution: Won't Fix
    • Minor
    • backlog-1.0
    • 1.3.0
    • library
    • None

    Description

      Using the .NET client to create a bucket programmatically (CouchbaseCluster.CreateBucket), works fine as long as at least one bucket already exists in the cluster. If the cluster has 0 buckets, the getBucketUri method in CouchbaseCluster.cs returns null. This then results in an ArgumentNullException in HttpHelper.doRequest.

      The workaround is to create at least one bucket that you intend to use, during installation, or to create a dummy bucket with minimal footprint, and remove it after scaffolding buckets programmatically. In a dev environment, this keeps developers from tearing down and re-scaffolding their Couchbase buckets programmatically.

      Attachments

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

        Activity

          People

            jmorris Jeff Morris
            jmorris Jeff Morris
            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