Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-58289

'History' key for collections inherits older values after the migration of storageBackend from Magma to Couchstore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 7.6.0
    • 7.6.0
    • ns_server
    • Upgrade version: 7.6.0-1344
    • Untriaged
    • Linux x86_64
    • 0
    • No

    Description

      Steps:

      1. Initialize a cluster with 3 KV nodes running 7.6.0-1344 version.
      2. Create a Magma bucket called 'new-bucket' and load some data.
      3. Create multiple collections in 'new-bucket', some with history=true and some with history=false.
      4. Migrate the storageBackend of 'new-bucket' to CouchStore through the swap rebalance method.
      5. 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.
      6. {"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}]}]}

      7. 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.
      8. 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.
      9. This shouldn't be the case because history=true doesn't make much sense for a CouchStore bucket.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vibhav.sp Vibhav S P
            vibhav.sp Vibhav S P
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty