Skip to content

release-25.3: changefeedccl: add test-only assertion for checkpoint fields invariant #149362

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

Merged
merged 3 commits into from
Jul 2, 2025

Conversation

blathers-crl[bot]
Copy link

@blathers-crl blathers-crl bot commented Jul 1, 2025

Backport 3/3 commits from #149094 on behalf of @andyyang890.


Fixes #149100


roachtest: surface changefeed failures in mixed-version CDC tests

Previously, if the changefeed failed in a mixed-version CDC test,
the test wouldn't fail until it hit the timeout. We now periodically
check for changefeed failures and fail the test if one is found.

Release note: None


mixedversion: add RunE method to Test

This patch adds a RunE method to Test. Unlike the existing Run function,
it will not immediately fatal the test if an error is encountered and will
instead return the error along with the test plan so that callers may decide
how to handle the error.

Release note: None


changefeedccl: add test-only assertion for checkpoint fields invariant

This patch adds a test-only assertion that we won't ever see both
checkpoint fields set on a changefeed job progress struct. It is
test-only because a bug that existed on earlier versions of 25.2
could cause both checkpoint fields to be set and so the production
code continues to discard the legacy checkpoint when that happens.

Release note: None


Release justification: test-only change

Previously, if the changefeed failed in a mixed-version CDC test,
the test wouldn't fail until it hit the timeout. We now periodically
check for changefeed failures and fail the test if one is found.

Release note: None
This patch adds a `RunE` method to `Test`. Unlike the existing `Run` function,
it will not immediately fatal the test if an error is encountered and will
instead return the error along with the test plan so that callers may decide
how to handle the error.

Release note: None
This patch adds a test-only assertion that we won't ever see both
checkpoint fields set on a changefeed job progress struct. It is
test-only because a bug that existed on earlier versions of 25.2
could cause both checkpoint fields to be set and so the production
code continues to discard the legacy checkpoint when that happens.

Release note: None
@blathers-crl blathers-crl bot requested a review from a team as a code owner July 1, 2025 17:44
@blathers-crl blathers-crl bot force-pushed the blathers/backport-release-25.3-149094 branch from fe9d870 to 47d7478 Compare July 1, 2025 17:44
@blathers-crl blathers-crl bot requested a review from a team as a code owner July 1, 2025 17:44
@blathers-crl blathers-crl bot added blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. labels Jul 1, 2025
@blathers-crl blathers-crl bot requested review from herkolategan and golgeek and removed request for a team July 1, 2025 17:44
@blathers-crl blathers-crl bot requested review from andyyang890 and removed request for a team July 1, 2025 17:44
Copy link
Author

blathers-crl bot commented Jul 1, 2025

Thanks for opening a backport.

Before merging, please confirm that the change does not break backwards compatibility and otherwise complies with the backport policy. Include a brief release justification in the PR description explaining why the backport is appropriate. All backports must be reviewed by the TL for the owning area. While the stricter LTS policy does not yet apply, please exercise judgment and consider gating non-critical changes behind a disabled-by-default feature flag when appropriate.

@blathers-crl blathers-crl bot requested a review from asg0451 July 1, 2025 17:44
@blathers-crl blathers-crl bot added the backport Label PR's that are backports to older release branches label Jul 1, 2025
@blathers-crl blathers-crl bot requested a review from DarrylWong July 1, 2025 17:44
@andyyang890 andyyang890 removed their request for review July 1, 2025 18:48
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@andyyang890 andyyang890 merged commit e1c117f into release-25.3 Jul 2, 2025
14 of 15 checks passed
@andyyang890 andyyang890 deleted the blathers/backport-release-25.3-149094 branch July 2, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Label PR's that are backports to older release branches blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. target-release-25.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants