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

[CBM] Sync gateway configuration may be wrong when mapping data in a restore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • Morpheus
    • None
    • tools
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      What is the problem?
      In a discussion with Ben Brooks I asked whether the data Sync Gateway stores in the _system scope will work if the collections are renamed (using map-data) or we exclude scopes/collections. He indicated that it may not:

      I think what'll happen is SG is going to try and open the collection and find it no longer exists. The customer will have the option of repairing this by updating the database config to remove the non-existent collection.

      It's the same behaviour that exists today if a customer went and just deleted a collection from the bucket when a SG database was referring to it.

      Is this a regression?
      I do not believe so. The data that is now in the _system scope used to be stored in the _default collection. The location has changed but the behaviour here hasn't.

      What is the solution?
      For non-KV services we ask them to provide a backup endpoint that returns an opaque blob of JSON. On restore we then give them this blob back along with the remapping/including/excluding that we are doing and they are responsible for affecting the change. We could potentially do a similar thing here but currently cbbackupmgr does not know anything about SG

      Attachments

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

        Activity

          People

            owend Daniel Owen
            Matt.Hall Matt Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty