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

[3.0.8 Backport] Oneshot replications should wait for DCP to catch up on changes feed



    • Improvement
    • Resolution: Fixed
    • Major
    • 3.0.8
    • None
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 127
    • 1


      We need to wait to have channel grant sequences to come over DCP before we backfill a channel on the changes feed.

      As it stands one shot replication take the same approach to this situation as continuous feeds. Continuous will skip over this until we receive the sequence in question over dcp so the validFrom seqno (highseqno on cahce) will cover it. This approach is fine for continuous feeds as we expect that there will be a retry of the above after we get the sequence over dcp as the replication in question will continue running. But for oneshot feeds this can cause issues, we can end up sipping backfill on a channel due to bad timing of not receiving the grant sequence over dcp and thus documents in a particular channel could be missed off replication.

      Propose a solution where we block on replication to wait for this sequence to come over dcp to finish the replication.

      In CBSE-13980 a customer saw this case and are asking for this to be fixed.


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



            tor.colvin Tor Colvin
            ben.brooks Ben Brooks
            0 Vote for this issue
            1 Start watching this issue



              Gerrit Reviews

                There are no open Gerrit changes