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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 2.8.0
    • SyncGateway
    • Security Level: Public
    • None

    Description

      The automatic conflict resolution with "conflict_resolution_type": "localWins"  is not working as expected in a push replication configured for Inter-Sync gateway replication. The change in the local database is not getting pushed to the remote cluster.

      Steps to reproduce the issue.

      1.  Configure the Push replication with conflict resolution type as localWins.

      2. Create a document in source cluster

      3. Once it got replicated, open the document in target cluster and make some modification.

      4. Modify the document in the source cluster.

       

      As per the documentation, the document will get rejected in the target SGW(passive replicator), but eventually will resolve it on the active(source replicator), and then subsequently push the resolved conflict back up. Since the resolution type is configured as localWins the change in the source cluster is expected to be replicated in the target cluster.

       

      But that is not happening in my testing. The document is not replicating to the target and the conflict/failure count is increasing by one.

       

      Here is the status with replication configuration
      {
      "config":

      { "batch_size": 200, "conflict_resolution_type": "localWins", "continuous": true, "direction": "push", "initial_state": "running", "password": "****", "remote": "http://x.x.x.x:4984/****", "replication_id": "******", "username": "******" }

      ,
      "doc_write_conflict": 5,
      "doc_write_failures": 5,
      "docs_checked_push": 13,
      "docs_written": 6,
      "last_seq_push": "13",
      "replication_id": "******",
      "status": "running"
      }

      https://docs.couchbase.com/sync-gateway/current/sync-inter-syncgateway-conflict-resolution.html#how-resolution-works 

      Attachments

        Issue Links

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

          Activity

            People

              The One The One
              mijicherian Miji Cherian (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