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

TiCDC support create table accelerate in TiDB #10908

Closed
hongyunyan opened this issue Apr 16, 2024 · 0 comments · Fixed by #10907
Closed

TiCDC support create table accelerate in TiDB #10908

hongyunyan opened this issue Apr 16, 2024 · 0 comments · Fixed by #10907
Labels
area/ticdc Issues or PRs related to TiCDC. type/enhancement The issue or PR belongs to an enhancement. type/feature Issues about a new feature

Comments

@hongyunyan
Copy link
Collaborator

In pingcap/tidb#50052, TiDB do the optimization for creating tables. In new implementations, create table ddls will not be inserted into table tidb_ddl_job, but only be inserted into table tidb_ddl_history when create table is finished.

Currently TiCDC only listen to tidb_ddl_job table to fetch the ddl changes. So in order to adapt to the new implementations in ddl, we need to also listen to tidb_ddl_history table to fetch the create table ddl.

Fortunately, create table ddl still has a eariler CommitTS and StartTs than other ddls in the same table. So we can still use CommitTS and StartTs to sort all ddls in tidb_ddl_job and tidb_ddl_history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ticdc Issues or PRs related to TiCDC. type/enhancement The issue or PR belongs to an enhancement. type/feature Issues about a new feature
Projects
None yet
1 participant