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

iSGR -- Auto conflict resolution not working for push replication

    XMLWordPrintable

Details

    Description

      Automatic conflict resolution not working for push replication in Inter-Sync Gateway replication

       

       

      The conflict resolution in ISGR is consistent with how Couchbase Lite 2.x handles conflicts (resolve on pull only - CBL is the active peer). Some more detail here: https://blog.couchbase.com/document-conflicts-couchbase-mobile/

      Recommended approach here, if you don't want pushAndPull, is to change the replicator to run on the other side, flip the direction and conflict resolution policy to RemoteWins.

      Implementing conflict resolution on push-only is problematic in a couple of ways:

      • If we assume you write the resolved conflict to both active and passive sides, you're kind of violating the "push only" guarantee of the replicator.
      • If you don't write the resolved conflict to the active side, and only push it back to the passive, you end up with conflicts every time that doc is updated on the active. Because it has no idea about the new revision the passive side got.

      Attachments

        Issue Links

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

          Activity

            People

              Ian.bridge Ian Bridge
              Ian.bridge Ian Bridge
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty