Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-3528

[3.1.2 backport] Matching databases for different config groups not being assigned same metadataID

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 3.1.2
    • None
    • SyncGateway
    • Security Level: Public
    • 3

    Description

      When upgrading to 3.1.x, the same database under different config groups can end up with different metadataIDs.  This results in the database being forced offline (requires resync), but resync won't actually fix the situation (it will just force the database in the other config group offline).

      Steps to repro:

      • Bucket must have existing _sync:seq and at least one document
      • start SG in config group 1
      • create database 'foo' for bucket 'bar'

      (metadata is set to _default)

      • start SG in config group 2
      • create database 'foo' for bucket 'bar'

      (metadata is set to foo, requires resync)

       

      The fix should ensure that the same database in different config groups ends up with the same metadataID, and should also evaluate repair mechanisms for existing cases that hit this.

      Attachments

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

        Activity

          People

            adamf Adam Fraser
            adamf Adam Fraser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty