Execute the no-dependent DDL job as soon as possible #19476
Labels
feature/discussing
This feature request is discussing among product managers
sig/sql-infra
SIG: SQL Infra
type/feature-request
Categorizes issue or PR as related to a new feature.
type/performance
Feature Request
Is your feature request related to a problem? Please describe:
As you can see, DDL job
59
is blocked by DDL job58
, since they are both modify the tablet
, this is reasonable.But DDL job
61
is also been blocked, it is blocked by DDL job59
, since they are in the same DDL job queue. This can be optimized because it doesn't have a dependent DDL job.Implementation
In the function
handleDDLJobQueue
, we can changegetFirstDDLJob
intogetFirstNoDependencyDDLJob
to find the first job that has no dependency. We also need to handle the dequeue logic properly.Score
300
SIG Slack Channel
You can join #sig-ddl on slack in your spare time to discuss and get help with mentors or others.
Mentor(s)
Recommended Skills
Learning Materials
MySQL's document for syntax reference.
TiDB DDL architecture
The text was updated successfully, but these errors were encountered: