Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-1625

Information about metadata retrieval in XDCR is incorrect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 4.5.1
    • 3.0.x, 3.1.x, 4.1, 4.5
    • xdcr

    Description

      By default XDCR fetches metadata twice from every document before it replicates the document at a destination cluster.

      ...

      Once the document reaches the destination, this cluster will request metadata once again to confirm the document on the destination has not changed since the initial check.

      This is not technically true, XDCR actually only fetches the metadata a single time to perform the conflict resolution (if necessary) on the source side of the replication.
      It uses the command 'setWithMeta' to send the data to the remote cluster if it decides that it 'wins' the conflict resolution; this command has its own conflict resolution built-in.

      A more suitable replacement for these sentences would be:

      By default XDCR fetches metadata once for every document that it replicates, before it replicates the document to the destination cluster.

      ...

      Once the replicated document reaches the destination, conflict resolution will be performed again by the remote cluster to ensure that the correct document 'wins'. This is to ensure that the correct version of the document 'wins' even if the document on the remote cluster has changed since the initial replication from the source cluster.

      Attachments

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

        Activity

          People

            amarantha.kulkarni Amarantha Kulkarni (Inactive)
            matt.carabine Matt Carabine (Inactive)
            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