changefeedccl: re-examine how checkpoints are affected by ALTER CHANGEFEED #137942
Labels
A-cdc
Change Data Capture
branch-master
Failures and bugs on the master branch.
branch-release-23.2
Used to mark GA and release blockers, technical advisories, and bugs for 23.2
branch-release-24.1
Used to mark GA and release blockers, technical advisories, and bugs for 24.1
branch-release-24.2
Used to mark GA and release blockers, technical advisories, and bugs for 24.2
branch-release-24.3
Used to mark GA and release blockers, technical advisories, and bugs for 24.3
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-cdc
I came across these two pieces of code to generate a new checkpoint when we alter a changefeed that only assigns spans without a timestamp:
cockroach/pkg/ccl/changefeedccl/alter_changefeed_stmt.go
Lines 802 to 804 in f06be00
cockroach/pkg/ccl/changefeedccl/alter_changefeed_stmt.go
Lines 832 to 834 in f06be00
It seems to me that this checkpoint would not only not help restore progress of those spans, but actually regress the progress of those spans back to zero given we assume that the checkpoint is always greater than the highwater mark:
cockroach/pkg/ccl/changefeedccl/changefeed_dist.go
Lines 472 to 474 in 9eb1027
We should re-examine what the expected behavior should be and fix the code to reflect that.
Jira issue: CRDB-45815
The text was updated successfully, but these errors were encountered: