[ 
https://issues.apache.org/jira/browse/CASSSIDECAR-486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18099527#comment-18099527
 ] 

Yafeng Lu commented on CASSSIDECAR-486:
---------------------------------------

cc:  [ 
|https://github.com/apache/cassandra-sidecar/commits?author=jyothsnakonisa] 
[~Jyothsnakonisa] [~jberragan] [~ycai] [~bernardo.botella] [ 
|https://github.com/apache/cassandra-sidecar/commits?author=jyothsnakonisa]

> Prefer exact-range CDC checkpoint on load to avoid restart rewind
> -----------------------------------------------------------------
>
>                 Key: CASSSIDECAR-486
>                 URL: https://issues.apache.org/jira/browse/CASSSIDECAR-486
>             Project: Sidecar for Apache Cassandra
>          Issue Type: Improvement
>            Reporter: Yafeng Lu
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to