Details
-
Bug
-
Resolution: Fixed
-
Test Blocker
-
7.2.0
-
7.2.0-5129
-
Untriaged
-
0
-
Unknown
Description
When setting the collection map using the /pools/default/buckets/<bucket>/scopes/ endpoint, all collections always seem to be created with history on.
Steps to repro
- Create cluster
- Create a magma bucket
- Create collections by setting the collection map:
curl http://<hostname>:8091/pools/default/buckets/<bucket>/scopes/ -u Administrator:password -X PUT -H 'Content-Type: application/json' -d @coll_map.json
where coll_map.json looks like this (history off for both collections):
{
"scopes": [
{
"name": "_default",
"collections": []
},
{
"name": "scope-1",
"collections": [
{
"name": "collection-1",
"history": false
},
{
"name": "collection-2",
"history": false
}
]
}
]
}
- Check collections history by doing:
curl http://<hostname>:8091/pools/default/buckets/<bucket>/scopes/ -u Administrator:password
and see that the result shows that all collections have history enabled:
{"uid":"1f","scopes":[{"name":"scope-1","uid":"12","collections":[{"name":"collection-2","uid":"53","history":true,"maxTTL":0},{"name":"collection-1","uid":"52","history":true,"maxTTL":0}]},{"name":"_default","uid":"0","collections":[]}]}
I've tried both specifying "history": false in the collection map and also omitting the "history" option entirely, and I always end up seeing that the collections have history enabled.
Attachments
Issue Links
- is duplicated by
-
MB-55601 Sample bucket loading fails due to failed collection modification
- Closed
For Gerrit Dashboard: MB-55427 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
186307,3 | MB-55427: Fix set manifest modify_collection bug and refactor test | neo | ns_server | Status: MERGED | +2 | +1 |
186315,4 | MB-55427: Respect history=false setting in set manifest path | neo | ns_server | Status: MERGED | +2 | +1 |
186427,4 | MB-55427: Only allow modification of collection history prop | neo | ns_server | Status: MERGED | +2 | +1 |
186728,3 | Merge branch 'neo' | master | ns_server | Status: ABANDONED | 0 | -1 |
186788,4 | MB-55427: Allow modification of collection if props are same | neo | ns_server | Status: MERGED | +2 | +1 |
186833,1 | MB-55427 formatting | neo | ns_server | Status: ABANDONED | -1 | +1 |
186834,1 | MB-55427 remove unnecessary use of proplist | neo | ns_server | Status: ABANDONED | +1 | +1 |
186835,1 | MB-55427 remove unnecessary use of case | neo | ns_server | Status: ABANDONED | -1 | +1 |
186841,3 | Merge remote-tracking branch 'couchbase/neo' | master | ns_server | Status: MERGED | +2 | +1 |