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

goxdcr non-optimistic replication for big docs not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 4.0.0
    • 4.0.0
    • XDCR
    • Security Level: Public
    • Yes

    Description

      For big documents, goxdcr does non-optimistic replication. i.e., it first retrieves metadata from target, does conflict resolution on source side, and replicates the document to target only when conflict resolution succeeds. This functionality is broken now due to an oversight in xmem_nozzle.go:

      xmem.batch.bigDoc_noRep_map = bigDoc_noRep_map

      should have been

      batch.bigDoc_noRep_map = bigDoc_noRep_map

      As a result, even though we did do source side conflict resolution, we effectively discarded the results and always sent docs to target, which defeated the purpose of optimistic replications. The result is not document loss but wasted work.

      Attachments

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

        Activity

          People

            arunkumar Arunkumar Senthilnathan (Inactive)
            yu Yu Sui (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty