Skip to content

CASSSIDECAR-486: Prefer exact-range CDC checkpoint on load to avoid restart rewind - #372

Open
Klose6 wants to merge 1 commit into
apache:trunkfrom
Klose6:CASSSIDECAR-486
Open

CASSSIDECAR-486: Prefer exact-range CDC checkpoint on load to avoid restart rewind#372
Klose6 wants to merge 1 commit into
apache:trunkfrom
Klose6:CASSSIDECAR-486

Conversation

@Klose6

@Klose6 Klose6 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

On sidecar restart, CDC consumers reload checkpoint state from sidecar_internal.cdc_state_v2. Today loadStateForRange returns all rows whose (start, end) overlaps the owned range, then analytics merges them with Marker.min (earliest segment/offset wins), which can rewind the offset to days ago. However when an exact match exists, we can ignore stale overlapping historical rows in cdc_state_v2, and fall back to the existing overlap-based load (needed for cluster shrink) when no exact match is found.

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.

2 participants