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

pillowfight writes to default collection when unknown collection was specified

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.1
    • None
    • None
    • 1

    Description

      After flushing the bucket I ran pillowifhgt against a non-existant collection with the following:

      ./cbc-pillowfight --password password --batch-size 1000 --num-items 12000 --num-threads 2 --min-size 512 --max-size 512 --persist-to 0 --replicate-to 0 --json --spec "couchbase://172.23.96.142/bucket-1?ipv6=allow&enable_tracing=false" --set-pct 0 --collection scope-not-there.collection-not-there 2>pfnot-there.log 

      And you can see that all item are loaded in default collection:

      [root@localhost ~]# /opt/couchbase/bin/cbstats -u Administrator -p password -b bucket-1 localhost:11210 collections
       _default:_default:id:    0x0
       collection:0x0:items:    3000
       collection:0x8:items:    0
       collection:0x9:items:    0
       collection:0xa:items:    0
       collections:             4
       default_exists:          true
       scope-1:collection-1:id: 0x8
       scope-1:collection-2:id: 0x9
       scope-1:collection-3:id: 0xa
       uid:                     4
      

      Attachments

        For Gerrit Dashboard: CCBC-1206
        # Subject Branch Project Status CR V

        Activity

          Build couchbase-server-7.0.0-3115 contains libcouchbase commit 803ae52 with commit message:
          CCBC-1206: Fill collection and scope in KV context

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-3115 contains libcouchbase commit 803ae52 with commit message: CCBC-1206 : Fill collection and scope in KV context

          People

            avsej Sergey Avseyev
            avsej Sergey Avseyev
            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