Details
Description
Steps:
- Initialize a cluster with 3 KV nodes running 7.6.0-1344 version.
- Create a Magma bucket called 'new-bucket' and load some data.
- Create multiple collections in 'new-bucket', some with history=true and some with history=false.
- Migrate the storageBackend of 'new-bucket' to CouchStore through the swap rebalance method.
- Post migration, it was observed from http://172.23.97.142:8091/pools/default/buckets/new-bucket/scopes, that the history key for collections had inherited the previous values.
-
{"uid":"10","scopes":[{"name":"scope-14","uid":"9","collections":[{"name":"collection-206","uid":"12","history":true},{"name":"collection-205","uid":"11","history":true},{"name":"collection-207","uid":"10","history":true},{"name":"collection-204","uid":"f","history":true},{"name":"collection-203","uid":"e","history":true}]},{"name":"_default","uid":"0","collections":[{"name":"new_col4","uid":"17","history":false},{"name":"new_col3","uid":"16","history":false},{"name":"new_col2","uid":"15","history":false},{"name":"new_col1","uid":"14","history":false},{"name":"new_col0","uid":"13","history":false},{"name":"collection-200","uid":"d","history":true},{"name":"collection-199","uid":"c","history":true},{"name":"collection-202","uid":"b","history":true},{"name":"collection-201","uid":"a","history":true},{"name":"_default","uid":"0","history":true}]},{"name":"_system","uid":"8","collections":[{"name":"_query","uid":"9","metered":false,"maxTTL":0,"history":false},{"name":"_mobile","uid":"8","metered":false,"maxTTL":0,"history":false}]}]}
- For example, from the above result that was fetched from http://172.23.97.142:8091/pools/default/buckets/new-bucket/scopes, it is observed that the value of the 'history' key for 'collection-205' is still set to true even after the completion of migration to CouchStore.
- It was also observed that the keys 'historyRetentionSeconds' and 'historyRetentionBytes' were deleted from http://172.23.97.142:8091/pools/default/buckets/new-bucket/, but 'history' for individual collections had inherited the previous value.
- This shouldn't be the case because history=true doesn't make much sense for a CouchStore bucket.