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

pillowfight ops succeeding against non existent collection

    XMLWordPrintable

Details

    Description

      I pulled down latest libcouchbase repo, built pillowfight according to repo docs. Then I created cluster with 1 bucket and 1 collection. I executed pillowfight against incorrect collection name but ops still made it to KV.

      admins-mbp-98:bin korrigan.clark$ ./cbc version
      cbc:
        Runtime: Version=3.0.0_18_gc3179958d4, Changeset=c3179958d4db71ee70243a1f8470edbf9e405f08
        Headers: Version=3.0.0_18_gc3179958d4, Changeset=c3179958d4db71ee70243a1f8470edbf9e405f08
        Build Timestamp: 2020-03-05 19:57:48
        IO: Default=libevent, Current=libevent, Accessible=libevent,libuv,libev,select
        SSL Runtime: OpenSSL 1.1.1d  10 Sep 2019
        SSL Headers: OpenSSL 1.1.1d  10 Sep 2019
        Snappy: 1.1.1
        Tracing: SUPPORTED
        System: Darwin-19.2.0; x86_64
        CC: Clang 11.0.0.11000033;  -fno-strict-aliasing -ggdb3 -pthread
        CXX: Clang 11.0.0.11000033;  -fno-strict-aliasing -ggdb3 -pthread

      You can see that the only non-default collection is named "collection1"

      admins-mbp-98:bin korrigan.clark$ curl -u Administrator:password -X GET http://172.23.133.13:8091/pools/default/buckets/bucket-1/collections
      {"uid":"2","scopes":[{"name":"scope1","uid":"8","collections":[{"name":"collection1","uid":"8"}]},{"name":"_default","uid":"0","collections":[{"name":"_default","uid":"0"}]}]}

      Pillowfight command, you can see I passed in collection named "csdcadc" which doesnt exist

      ./cbc-pillowfight --password password --batch-size 1000 --num-items 20000000 --num-threads 50 --min-size 512 --max-size 512 --persist-to 0 --replicate-to 0 --collection csdcadc --json --spec "couchbase://172.23.133.13/bucket-1?ipv6=allow&enable_tracing=false" --populate-only Populating using 400 cycles Running. Press Ctrl-C to terminate... ^CS/SEC:      49999
      

      Uploaded screen shot so items in my bucket.

      [root@172-23-133-13 ~]# /opt/couchbase/bin/cbstats -u Administrator -p password -b bucket-1 localhost:11210 collections 
      collection:0x0:items:          139799 
      collection:0x8:items:          0 
      manifest:collection:0x0:name:  _default 
      manifest:collection:0x0:scope: 0x0 
      manifest:collection:0x8:name:  collection1 
      manifest:collection:0x8:scope: 0x8 
      manifest:collections:          2 
      manifest:default_exists:       true 
      manifest:uid:                  2
      

      Attachments

        1. pf.log
          57 kB
        2. pfnot-there.log
          31.20 MB
        3. Screen Shot 2020-03-06 at 10.51.06 AM.png
          Screen Shot 2020-03-06 at 10.51.06 AM.png
          162 kB
        4. Screen Shot 2020-03-25 at 10.16.50 AM.png
          Screen Shot 2020-03-25 at 10.16.50 AM.png
          181 kB

        Activity

          People

            avsej Sergey Avseyev
            korrigan.clark Korrigan Clark (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty