Skip to content

changefeedccl: fix job progress checkpoint fields invariant violation #148617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

andyyang890
Copy link
Collaborator

@andyyang890 andyyang890 commented Jun 20, 2025

Fixes #148560
Fixes #148620


changefeedccl: avoid creating checkpoint string all the time

This patch modifies the changefeed job progress saving code so that
we only create a string for a span-level checkpoint when we actually
need it for logging.

Release note: None


changefeedccl: fix job progress checkpoint fields invariant violation

Release note (bug fix): A bug where a changefeed that was created before
v25.2 could fail after upgrading to v25.2 with the error message
both legacy and current checkpoint set on change aggregator spec
has now been fixed.

Copy link

blathers-crl bot commented Jun 20, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

This patch modifies the changefeed job progress saving code so that
we only create a string for a span-level checkpoint when we actually
need it for logging.

Release note: None
@andyyang890 andyyang890 force-pushed the 20250620-fix-checkpoint-assertion branch from adf3f9b to cae11ca Compare June 20, 2025 21:00
@andyyang890 andyyang890 added the backport-25.2.x Flags PRs that need to be backported to 25.2 label Jun 20, 2025
@andyyang890 andyyang890 marked this pull request as ready for review June 20, 2025 22:40
@andyyang890 andyyang890 requested review from a team as code owners June 20, 2025 22:40
@andyyang890 andyyang890 requested review from jeffswenson, KeithCh and asg0451 and removed request for a team June 20, 2025 22:40
@andyyang890 andyyang890 marked this pull request as draft June 21, 2025 00:20
@andyyang890 andyyang890 force-pushed the 20250620-fix-checkpoint-assertion branch 4 times, most recently from c2eec46 to 5bc352e Compare June 22, 2025 18:20
Release note (bug fix): A bug where a changefeed that was created before
v25.2 could fail after upgrading to v25.2 with the error message
`both legacy and current checkpoint set on change aggregator spec`
has now been fixed.
@andyyang890 andyyang890 force-pushed the 20250620-fix-checkpoint-assertion branch from 5bc352e to db4ca24 Compare June 22, 2025 19:53
@andyyang890
Copy link
Collaborator Author

@andyyang890 andyyang890 marked this pull request as ready for review June 22, 2025 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-25.2.x Flags PRs that need to be backported to 25.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

changefeedccl: job progress checkpoint fields invariant violation roachtest: cdc/mixed-version/checkpointing failed
2 participants