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
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:
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.
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.