Skip to content
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

ddl puller(ticdc): add UTs for schema version check removal in DDL #11822

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

Conversation

wlwilliamx
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #11820

What is changed and how it works?

This PR introduces a unit test to validate the handling of schema version disorder in TiCDC’s DDL job processing logic.

Background

Previously, TiCDC enforced a schema version check that discarded DDL jobs with schema versions smaller than the current schema version, even if their commit timestamps were valid. This logic was removed in #11733 to allow processing of DDL jobs based on commit timestamps alone, improving robustness in handling schema version disorder.

This ensures TiCDC can robustly handle schema version disorder without discarding valid DDL jobs, aligning with the recent removal of schema version checks.

Check List

Tests

  • Unit test

Questions

Will it cause performance regression or break compatibility?

No.

Do you need to update user documentation, design documentation or monitoring documentation?

No.

Release note

None

@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-triage-completed release-note-none Denotes a PR that doesn't merit a release note. labels Dec 3, 2024
Copy link
Contributor

ti-chi-bot bot commented Dec 3, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zwj-coder for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@wlwilliamx wlwilliamx changed the title ddl puller: add UTs for ddl schema version removal ddl puller(ticdc): add UTs for ddl schema version removal Dec 3, 2024
@ti-chi-bot ti-chi-bot bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 3, 2024
@wlwilliamx wlwilliamx changed the title ddl puller(ticdc): add UTs for ddl schema version removal ddl puller(ticdc): add UTs for schema version check removal in DDL Dec 3, 2024
@wlwilliamx
Copy link
Contributor Author

/cc @asddongmen @lidezhu

@ti-chi-bot ti-chi-bot bot requested review from asddongmen and lidezhu December 3, 2024 10:04
@wlwilliamx
Copy link
Contributor Author

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/needs-triage-completed release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Unit Test to Validate Schema Version Check Removal in TiCDC
1 participant