Yafeng Lu created CASSSIDECAR-486:
-------------------------------------

             Summary: 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


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