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
    • Status: Resolved
    • Test Blocker
    • Resolution: Fixed
    • 3.0.0-beta.1
    • 3.0.0-beta.2
    • 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

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

        Activity

          david.kelly David Kelly added a comment -

          With a recent mad hatter and the most recent python client (current master), this seems to be resolved. Closing it, please reopen if you still have issues!

          david.kelly David Kelly added a comment - With a recent mad hatter and the most recent python client (current master), this seems to be resolved. Closing it, please reopen if you still have issues!
          david.kelly David Kelly added a comment -

          assigning back to Anitha - LMK if there are any issues with this

          david.kelly David Kelly added a comment - assigning back to Anitha - LMK if there are any issues with this
          david.kelly David Kelly added a comment - - edited

          oh – I just noticed that these collections are all put in a bucket named default. Which of course, just so happened to be where I was putting them. But, if you try to put them into another bucket... they don't go there. I'm going to fix that now - (as part of my work on https://issues.couchbase.com/browse/PYCBC-721) IDK if that was part of the issue here or not, but it is worth mentioning (and fixing )

          david.kelly David Kelly added a comment - - edited oh – I just noticed that these collections are all put in a bucket named default. Which of course, just so happened to be where I was putting them. But, if you try to put them into another bucket... they don't go there. I'm going to fix that now - (as part of my work on https://issues.couchbase.com/browse/PYCBC-721 ) IDK if that was part of the issue here or not, but it is worth mentioning (and fixing )

          David Kelly - It works perfect now. I tested only with default bucket for now.

          anitha.kuberan Anitha Kuberan added a comment - David Kelly  - It works perfect now. I tested only with default bucket for now.
          david.kelly David Kelly added a comment -

          Woot!  thx Anitha Kuberan!

          david.kelly David Kelly added a comment - Woot!  thx Anitha Kuberan !

          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:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty