Commit Graph

15 Commits

Author SHA1 Message Date
b477b1c946 *: Supports create/alter/drop resource group (#40188)
ref pingcap/tidb#38825
2023-01-09 13:44:22 +08:00
f7de8beede *: remove the support of the old ddl framework (#39684)
ref pingcap/tidb#39824
2022-12-30 18:30:18 +08:00
bdcb85031e schematracker: treat TableInfo as immutable (#39103)
ref pingcap/tidb#35933
2022-11-14 18:21:55 +08:00
300d9e7c63 ddl: Support flashback schema (#37438)
close pingcap/tidb#20463
2022-10-19 15:03:54 +08:00
400f585578 br/restore: try keep table ID when possible (#38033)
close pingcap/tidb#38438
2022-10-14 12:21:52 +08:00
2c35087811 ddl: rename column should update foreign key constrain (#37870)
close pingcap/tidb#37868
2022-09-20 15:19:04 +08:00
9a8272dc71 ddl: add foreign key check when modify column (#37823)
close pingcap/tidb#37821
2022-09-15 19:10:59 +08:00
a04000cd89 *: merge feature/flashback-cluster to master (#37529)
ref pingcap/tidb#37197
2022-09-01 10:58:24 +08:00
a849cc2190 ddl: move syncer to a single package (#36994) 2022-08-09 19:54:48 +08:00
257c78764d test: fix race for SetDDL by moving ddl inject earlier (#36964)
close pingcap/tidb#36940
2022-08-09 10:36:47 +08:00
158ba1a1d9 *: enable part revive for all code (#36703) 2022-08-01 14:02:06 +08:00
96d2c25c92 ddl: implement intra-table DDL for SchemaTracker (#36176)
close pingcap/tidb#35933
2022-07-29 19:33:13 +08:00
ab513bf0ca ddl: support concurrent ddl (#32169)
* 1. init ddl tables

create tidb_ddl_job, tidb_ddl_reorg, tidb_ddl_history tables with raw meta write, these 3 tables is use to replace the ddl job queue and reorg and history hash table

* 2. setup concurrent ddl env and add ddl worker pool

adds the ddl worker pool definition, the ddl job manager will find a job and ship it to a worker in the worker pool.
Also, this commit provides a sessionctx wrapper, only use in ddl relate. it just wraps begin, commit and execute

* 3. add ddl manager to handle ddl job

* 4. reorg handler for concurrent ddl

just implements the partner of the reorg information.

* 5. manage ddl jobs for concurrent ddl

add the partner of add job, delete job and many others related to history job
because many of the functions need a session now, we just change the caller

* 6. add metrics for concurrent ddl

add metrics

* 7. support multiple tables

* 8. fix test

* 9. migrate ddl between table and queue

support switch between the old and new ddl framework, migrate the existing ddl job between queue and table

* 10. check tikv version and set reorg worker count according cpu count

* *: add featuretag on tests

Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>

* use a determined table id for 3 tables

* remove ctx value

* add GetSchemaVersionWithNonEmptyDiff function

* address tangenta and zimulala comment

* use only one etcd path

* make ActionRenameTable support multi-schema

* reset sql digest to make top sql work correct

* add comment

* fix test

* remove 0 for schema version lock

Co-authored-by: xiongjiwei <xiongjiwei1996@outlook.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Co-authored-by: wjHuang <huangwenjun1997@gmail.com>
2022-07-20 21:20:07 +08:00
0e13d5d009 ddl: implement table granularity DDL for SchemaTracker (#36077)
ref pingcap/tidb#35933
2022-07-13 14:57:05 +08:00
49b4bf96bd ddl: implement Schema level API for DM SchemaTracker (#35991)
ref pingcap/tidb#35933
2022-07-11 11:31:05 +08:00