[BP 7.0.2] - XDCR - backfill req handler may not get correct throughSeqnos if pipeline is paused

Description

For 7.0, we have the following lines:

https://github.com/couchbase/goxdcr/blob/d90bca90e8195c66250c434418825c744216420a/backfill_manager/backfill_request_handler.go#L440-L445

Normally, when raising a backfill, XDCR will go figure out the throughSeqno and compile a backfill task for each VB going from 0 to whatever the throughSeqno is.

When the pipeline is stopped and not running, it will retrieve 0. Instead, it should follow the other path of 

https://github.com/couchbase/goxdcr/blob/d90bca90e8195c66250c434418825c744216420a/backfill_manager/backfill_request_handler.go#L867

and capture checkpoint number, in case the pipeline is stopped.

For 7.0, it's not a huge issue because the first call only happens during pipeline runtime. (Can consider this for backport just in case).

However, this is a hole that should be fixed in preparation for 7.1 and the work.

Components

Affects versions

Fix versions

Labels

Environment

None

Link to Log File, atop/blg, CBCollectInfo, Core dump

None

Release Notes Description

None

Activity

CB robot August 9, 2021 at 8:42 PM

Build couchbase-server-7.0.1-5995 contains goxdcr commit 8a49a40 with commit message:
- backfill req handler may not get correct throughSeqnos if pipeline is paused

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Is this a Regression?

No

Triage

Untriaged

Story Points

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created August 6, 2021 at 12:24 AM
Updated October 14, 2021 at 1:29 PM
Resolved August 9, 2021 at 8:44 PM
Instabug