pillowfight ops succeeding against non existent collection

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.

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

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

Uploaded screen shot so items in my bucket.

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Attachments

4
  • 25 Mar 2020, 05:28 PM
  • 25 Mar 2020, 05:28 PM
  • 25 Mar 2020, 05:26 PM
  • 06 Mar 2020, 06:51 PM

Activity

Show:

CB robot September 15, 2020 at 11:05 AM

Build couchbase-server-7.0.0-3115 contains libcouchbase commit 79e5791 with commit message:
: cbc-pillowfight: fixed --collection switch

Korrigan Clark March 26, 2020 at 6:26 PM

 just verified and it works properly now.

Sergey Auseyau March 26, 2020 at 3:02 PM

Hi , thanks for the verification. I've fixed fallback to default collection in

Waiting for jenkins to verify commits and then I can proceed with the release

Korrigan Clark March 25, 2020 at 5:25 PM

I tried the lastest code and there are two issues. First issue is that ops against a non-existant collection still succeed. Second issue is that pillowifhgt does not fully respect the num-items parameter, it loads more items than specified.

You can see here that there is default collection and 3 user created collections:

I then ran this command, which should load 12,000 items across 3 different collections:

This command does not load exactly 12,000 items, but it does load them into the specified collections evenly as you can see here:

Cluster is a 4 node cluster, so we are looking at 1/4th of the vbuckets here. Will upload UI pic as well.

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

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

Sergey Auseyau March 19, 2020 at 6:10 PM
Edited

http://review.couchbase.org/123976

with this patch cbc-pillowfight will cycle through the collections specified with --collection switch. Collections must be in full form (--collection scope_name.collection_name)

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Fix versions

Components

Labels

Reporter

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created March 6, 2020 at 6:51 PM
Updated September 15, 2020 at 11:05 AM
Resolved March 26, 2020 at 6:26 PM
Instabug