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

_removed entry not sent with delta sync

    XMLWordPrintable

    Details

    • Sprint:
      CBG Sprint 26
    • Story Points:
      5

      Description

      The scenario is as follows:

      1. Start a SG instance with one user (autotest) assigned access to a particular channel (ABC)
      2. Create several documents on Couchbase Lite that get routed to the ABC channel
      3. Modify all the documents via SG HTTP so that they get routed to another channel instead (e.g. "unknown" channel)
      4. Run a pull replication on CBL

       

      With delta sync disabled this results in an exchange that finally ends in the following BLIP message for each revision:

      Frame Flags: Compressed|NoReply (0x28)
      Properties Length: 153
      Properties: history:1-f93627c3c7e953ef8d319b20cd7741cf9dad1c3e:Content-Type:application/json:Profile:rev:id:cbl_0:rev:2-8619ff078f2b2751592e4ffd45f262b7:sequence:12
      Message Body: {"_removed":true}

      However, with delta sync enabled the following gets sent instead:

      Frame Flags: Compressed|NoReply (0x28)
      Properties Length: 205
      Properties: Content-Type:application/json:Profile:rev:id:cbl_0:rev:2-58f62bd7e692d3f482ed9a9f9a775d48:sequence:12:history:1-e1d6c42d605810a2eb07da07ba3b022c326fb292:deltaSrc:1-e1d6c42d605810a2eb07da07ba3b022c326fb292
      Message Body: {"channels":{"0":"unknown"}}
      

      This results in the access removed event never getting triggered.  

        Attachments

          Issue Links

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

            Activity

            jimb Jim Borden created issue -
            adamf Adam Fraser made changes -
            Field Original Value New Value
            Assignee The One [ the one ] Adam Fraser [ adamf ]
            adamf Adam Fraser made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            adamf Adam Fraser made changes -
            Fix Version/s Cobalt [ 15420 ]
            adamf Adam Fraser made changes -
            Labels Blip delta-sync Blip backport-candidate delta-sync
            ben.brooks Ben Brooks made changes -
            Assignee Adam Fraser [ adamf ] Ben Brooks [ ben.brooks ]
            ben.brooks Ben Brooks made changes -
            Sprint CBG Sprint 26 [ 854 ]
            ben.brooks Ben Brooks made changes -
            Rank Ranked higher
            ben.brooks Ben Brooks made changes -
            Story Points 5
            ben.brooks Ben Brooks made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            ben.brooks Ben Brooks made changes -
            Actual Start 2019-07-11 12:33 (issue has been started)
            ben.brooks Ben Brooks made changes -
            Rank Ranked higher
            daniel.petersen Daniel Petersen made changes -
            Fix Version/s 2.5.1 [ 16143 ]
            ben.brooks Ben Brooks made changes -
            Status In Progress [ 3 ] In Review [ 10107 ]
            Automated transition triggered when Ben Brooks created pull request #4190 in GitHub -
            Status In Review [ 10107 ] In Progress [ 3 ]
            ben.brooks Ben Brooks made changes -
            Status In Progress [ 3 ] In Review [ 10107 ]
            ben.brooks Ben Brooks made changes -
            Link This issue backports to CBG-450 [ CBG-450 ]
            Automated transition triggered when Ben Brooks created pull request #4192 in GitHub -
            Status In Review [ 10107 ] In Progress [ 3 ]
            ben.brooks Ben Brooks made changes -
            Status In Progress [ 3 ] In Review [ 10107 ]
            Automated transition triggered when Adam Fraser merged pull request #4192 in GitHub -
            Status In Review [ 10107 ] Resolved [ 5 ]
            Anonymous made changes -
            Actual End 2019-07-12 13:10 (issue has been closed)
            ben.brooks Ben Brooks made changes -
            Status Resolved [ 5 ] Reopened [ 4 ]
            ben.brooks Ben Brooks made changes -
            Resolution Fixed [ 1 ]
            Status Reopened [ 4 ] Resolved [ 5 ]
            ben.brooks Ben Brooks made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              Assignee:
              ben.brooks Ben Brooks
              Reporter:
              jimb Jim Borden
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes

                    PagerDuty