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

Bucket creation should default to CAS based CR

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • Morpheus
    • 6.6.0, 6.6.1, 6.6.2, 6.6.3, 6.6.4, 6.6.5, 6.6.6, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.0.5, 7.1.0, 7.1.1, 7.1.2, 7.2.0, 7.1.3
    • ns_server, XDCR
    • 0

    Description

      Since XDCR introduced CAS-based conflict resolution, it has always been an opt-in, as during bucket creation the default option is to select Rev-ID seqno based conflict resolution (Most Write Wins).

      This ticket is a request to change the default of new bucket creation to use CAS-based CR for two reasons:

      1. Better intuitive understanding of conflict resolution behavior
      2. Preventing friction for future XDCR replication once serverless is introduced.

      1.
      Rev-ID based CR is easier to deploy as it doesn't require NTP, but it causes many headaches over the years (via support tickets, or needing repeated explanations), as it is less intuitive to understand when things don't replicate. Often times, this is due to documents being deleted on the target cluster, which turn them into tombstones with a higher revID than the original source document.

      I don't have the numbers here, but anecdotally (from history) the majority of the CBSEs being investigated for XDCR document mismatch are using RevID based CR.

      2.
      https://couchbasecloud.atlassian.net/browse/AV-43778 is a ticket describing that new buckets will now be using LWW by default on serverless. It would be good to also do the same on the server side (for the new buckets being created), to align with the future strategy. More specifically, we want to be able to support XDCR replication to serverless in the future. And, if on-prem deployment is not also defaulting to LWW, it could lead to friction for migration to serverless, and vice versa (i.e. offloading from serverless to on-prem).

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-55804
          # Subject Branch Project Status CR V

          Activity

            People

              hyun-ju.vega Hyun-Ju Vega
              neil.huang Neil Huang
              Votes:
              0 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change

                  PagerDuty