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
|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.