Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-699

data loads to default collection only even when the collection object points to different collection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Test Blocker
    • 3.0.0-beta.2
    • 3.0.0-beta.1
    • library
    • None
    • centos7
    • 1

    Description

      Steps:

      1. enable DP in a one node cluster with build 7.0.0-1086
      2. create a bucket and create a collection 
      3. through python sdk insert 1 document to default collection and 1 document to the collection created in step 2
      4. insert succeeds, get also succeeds.
      5. get cbstats of collections from the cluster, both document are inserted to default collection 
      6. tried inserting the same document to 2 collection, second insert fails with KeyExistsException

      cbstats output:

      /opt/couchbase/bin/cbstats 10.112.190.101:11210 -u Administrator -p password -b default collections

      collection:0x0:items:         2

      collection:0x8:items:         0

      manifest:collection:0x0:name: _default

      manifest:collection:0x8:name: CollectionsWithLargeNamechecki

      manifest:collections:         2

      manifest:default_exists:      true

      manifest:uid:                 2

      Also, is there any way to check to which collection the collection object points to. if we do bucket.collection(collection_name), then we think that the returned object is pointing to the collection we specified. Is there any way to double check that the returned object is actually pointing to that collection only?

      I will check with other SDK and see if this works fine.

      Attachments

        Activity

          People

            anitha.kuberan Anitha Kuberan
            anitha.kuberan Anitha Kuberan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty