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

[2.8.3 Backport] ISGR Pull checkpoint sequences unreliable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.8.3
    • None
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 84
    • 1

    Description

      ISGR pull checkpoint sequences can be both behind or ahead of the actual intended sequence to be checkpointed.

      This has the effect that pull replications that are interrupted (aborted or disconnected replications, both one-shot and continuous) can cause:

      • Skip sequences entirely
      • Reprocessed sequences

      One-shot or caught up continuous replications may get a sequence behind the intended checkpoint sequence, but never ahead - resulting in only:

      • Reprocessed sequences

      Technical Detail

      The checkpointer expects the slice of {{expectedSeqs }} for a replication to be ordered. In the pull case, this list of sequences comes from a map, which has random ordering, so does not produce an ordered set of sequences for the checkpoint calculation logic to work from, resulting in the checkpointer choosing the last sequence in the map iteration, which is not nessisarily the latest sequence.

      Attachments

        Issue Links

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

          Activity

            People

              jacques.rascagneres Jacques Rascagneres
              ben.brooks Ben Brooks
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty