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

[3.1.9 Backport] Detect and handle _sync:seq rollback in sequence allocator

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.1.9
    • None
    • SyncGateway
    • Security Level: Public
    • None

    Description

      The sequence allocator assumes that the next allocated sequence is always going to be larger than the previously seen sequence.  There are a few scenarios where _sync:seq could be rolled back on the server:

      • vbucket failover/rollback
      • incorrect migration of data into the bucket (XDCR, backup/restore)
        If _sync:seq is rolled back while Sync Gateway is running, the sequence allocator has the ability to detect this and restore _sync:seq to a value greater than the last allocated sequence on the node.

      The solution needs to consider the case where multiple nodes detect this rollback concurrently.

      Attachments

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

        Activity

          People

            gregory.newmansmith Gregory Newman-Smith
            gregory.newmansmith Gregory Newman-Smith
            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