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

[3.1.1 backport] Allow one-shot replications to wait for DCP to catch up on changes feed

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.1.1
    • None
    • SyncGateway
    • Security Level: Public
    • CBG Sprint 126
    • 1

    Description

      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.

      Attachments

        Activity

          People

            gregory.newmansmith Gregory Newman-Smith
            adamf Adam Fraser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty