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 ignored by ddl job finishedTs less than puller resolvedTs #11714

Closed
sdojjy opened this issue Nov 5, 2024 · 0 comments · Fixed by #11733
Closed

DDL ignored by ddl job finishedTs less than puller resolvedTs #11714

sdojjy opened this issue Nov 5, 2024 · 0 comments · Fixed by #11733
Labels
affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.5 This bug affects the 8.5.x(LTS) versions. area/ticdc Issues or PRs related to TiCDC. found/gs severity/major type/bug The issue is confirmed as a bug.

Comments

@sdojjy
Copy link
Member

sdojjy commented Nov 5, 2024

assume there are two ddl jobs
Job 60 : ALTER TABLE a ADD COLUMN x, y, z, it's commit ts is 400
Job 62: ALTER TABLE b ADD COLUMN y it's commit ts is 300

TiCDC sorts these jobs and run Job 62 first, then Job 60
DDL Puller processed Job 62 and set p.schemaVersion to 62,

p.schemaVersion = job.BinlogInfo.SchemaVersion

Job 60 will be ignored due to b.BinlogInfo.SchemaVersion <= p.schemaVersion

ddl job finishedTs less than puller resolvedTs,discard the ddl job

job.BinlogInfo.SchemaVersion <= p.schemaVersion {

@ti-chi-bot ti-chi-bot bot added affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-5.4 This bug affects the 5.4.x(LTS) versions. labels Nov 19, 2024
mjonss pushed a commit to mjonss/tiflow that referenced this issue Nov 25, 2024
ti-chi-bot bot pushed a commit that referenced this issue Dec 3, 2024
ti-chi-bot bot pushed a commit that referenced this issue Dec 3, 2024
ti-chi-bot bot pushed a commit that referenced this issue Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.5 This bug affects the 8.5.x(LTS) versions. area/ticdc Issues or PRs related to TiCDC. found/gs severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants