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

[Storage Migration] Updating Bucket properties fails with error 'Cannot update bucket while storage mode is being migrated' after migration of bucket from couchstore to magma

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.6.0
    • 7.6.0
    • ns_server
    • 7.6.0-1305

    Description

      Steps:

      1. Create a 2 node cluster(only data nodes)(172.23.107.237, 172.23.107.232)
      2. Create a couchstore bucket
      3. Enable migration from couchstore to magma using below api

        curl -v POST -u Administrator:password http://172.23.107.232:8091/pools/default/buckets/default2 -d 'name=default2&storageBackend=magma'
        

      4. Rebalance in a node( 172.23.107.126)

        [root@se1701-cnt7 ~]#  [root@se1701-cnt7 ~]#  curl -u Administrator:password http://172.23.107.237:8091/pools/default/buckets/default2/ | jq '.nodes[].storageBackend'
          % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                         Dload  Upload   Total   Spent    Left  Speed
        100 19169  100 19169    0     0   836k      0 --:--:-- --:--:-- --:--:--  850k
        "couchstore"
        null
        "couchstore"
        

      5. Rebalance out a node(rebalance out node: 172.23.107.232)

        [root@se1701-cnt7 ~]#  curl -u Administrator:password http://172.23.107.237:8091/pools/default/buckets/default2/ | jq '.nodes[].storageBackend'
          % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                         Dload  Upload   Total   Spent    Left  Speed
        100 11549  100 11549    0     0   527k      0 --:--:-- --:--:-- --:--:--  563k
        "couchstore"
        null
        

      6. Hardfailover +full recovery remaining node( node 172.23.121.237) and rebalance

        [root@se1701-cnt7 ~]#  curl -u Administrator:password http://172.23.107.237:8091/pools/default/buckets/default2/ | jq '.nodes[].storageBackend'
          % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                         Dload  Upload   Total   Spent    Left  Speed
        100 17808  100 17808    0     0   708k      0 --:--:-- --:--:-- --:--:--  724k
        null
        null
        

      7. Try enabling CDC on the migrated bucket with storage=magma

        curl localhost:8091/pools/default/buckets/default2 -u Administrator:password -X POST -d historyRetentionCollectionDefault=true
        Cannot update bucket while storage mode is being migrated.-bash-4.2#
         
         curl localhost:8091/pools/default/buckets/default2 -u Administrator:password -X POST -d historyRetentionSeconds=13600
        Cannot update bucket while storage mode is being migrated.-bash-4.2#
        

      Tried updating replicas also but was getting same error

      Note: When I tried hard-failover+full recovery of both the nodes(one at a time), I haven't seen above issue

      System is still in the same state: http://172.23.107.237:8091/ui/index.html

      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
            ankush.sharma Ankush Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty