Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-57106

OSO/magma backfill might send duplicate items when resuming after pause

    XMLWordPrintable

Details

    • Triaged
    • 0
    • Unknown

    Description

      Issue introduced by MB-52134 in 7.1.2 (support for ById Scan added to MagmaKVStore).

      For OSO backfill (ByKey Scan in KVStore) we miss to set the resume point to the proper key when the backfill is paused. The consequence is that at resume the backfill might resend the last processed key over the stream. By that:

      • DCP clients might see key duplicates in OSO snapshots
      • Slow DCP clients that force the stream to continuous pausing might stall/loop over receiving the same key multiple times in OSO snapshots

       

      Issue Resolution
      DCP clients streamed in out-of-sequence-order [OSO] backfill snapshots under Magma observed duplicate documents received in the disk snapshot. This happened where the stream was paused and resumed when the resume point was wrongly set to a key already processed in the stream. OSO backfill in Magma now sets the correct resume point after a pause.

      Attachments

        For Gerrit Dashboard: MB-57106
        # Subject Branch Project Status CR V

        Activity

          People

            ashwin.govindarajulu Ashwin Govindarajulu
            paolo.cocchi Paolo Cocchi
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty