cockroachdb / cockroachdb/cockroach

changefeedccl: start watching new targets at ALTER CHANGEFEED statement time

Open
#164,525 1 comment 0 reactions 0 assignees View on GitHub
A-cdc C-enhancement T-cdc
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

Currently, new targets added with ALTER CHANGEFEED are watched as of the changefeed's current highwater. It would make more sense to instead start watching the new targets as of the ALTER CHANGEFEED statement time. This isn't currently easy to implement because the changefeed infrastructure doesn't have a way of doing initial scans for different tables at different timestamps. It would probably also be nicer if we didn't start sending events for the new targets until the highwater reaches the ALTER statement time, which is another thing that isn't currently supported.

Relates to #83181
Relates to #142376
See also https://cockroachlabs.slack.com/archives/C065X5307U3/p1772029389997969

Jira issue: CRDB-60860

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.