Skip to content

[BP] MB-66163: fix checkpointing mechanism under sparse mutation scenarios#2187

Merged
Thejas-bhat merged 1 commit into
7.6.x-couchbasefrom
checkpointBP
Apr 25, 2025
Merged

[BP] MB-66163: fix checkpointing mechanism under sparse mutation scenarios#2187
Thejas-bhat merged 1 commit into
7.6.x-couchbasefrom
checkpointBP

Conversation

@Thejas-bhat

Copy link
Copy Markdown
Member

Backporting #2186 to couchbase 7.6.x release cycle

…#2186)

- the checkpointing mechanism considers snapshots which fall within the
`numSnapshotsToKeep * rollbackSamplingInterval` duration window. The
snapshots outside this window are purged.
- Under sparse mutation scenario for eg, when the workload pattern in
such that it results in seldomly persisting snapshots that too outside
this duration window - we could end up purging ALL those snapshots which
makes the system fallback to preserving the latest snapshots
- For a better partial rollback behaviour, we retain
`rollbackRetentionFactor` worth of snapshots out of this duration window
such that the cost of rebuilding the index from scratch is avoided.
- This PR fixes the decision logic involved in the scenario pointed and
tracks the previous checkpoints while opening back the index as well.
@Thejas-bhat Thejas-bhat changed the base branch from master to 7.6.x-couchbase April 25, 2025 11:29
@Thejas-bhat Thejas-bhat merged commit df80179 into 7.6.x-couchbase Apr 25, 2025
@CascadingRadium CascadingRadium modified the milestone: v2.5.1 Apr 28, 2025
@abhinavdangeti abhinavdangeti deleted the checkpointBP branch May 3, 2025 20:17
abhinavdangeti pushed a commit that referenced this pull request May 6, 2025
…arios (#2187)

Backporting #2186 to couchbase 7.6.x release cycle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants