Closed hawkingrei closed 1 year ago
/run-build
/run-all-tests
/run-unit-test
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/7eaba28950553f07033c3dc9fca12c35095e00da
/run-unit-test
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/62c38c703376600a3828f54f1621428fa72dfaf9
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/073acd500e80b2edb6f6714ef5bdc28be5db0f7c
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/eeda355c476445e994b5ceea87fd71d4930b8f52
@zimulala some comments are addressed at the newest commit, PTAL. And I will add some UT in another commit
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/e98200dd9944b738eed0c2d0763a2726f889a927
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/70b44d747d224310f03ead83f4b8a4cc11ec73e5
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/c09a8399de45c15cf7b027281492a5a8363fe612
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/83c3cdae2ef3e83307f0cda8e46fd98a787d7033
@zimulala @tangenta PTAL
/run-integration-ddl-test
/re-build
/run-integration-ddl-test
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/b1184d9b1f04090e6a587c382378302a15679c57
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/f057fc91b1ac514d6bba13c9a3951889de6bd2fe
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/02e7d0404591691dd52a9563565468dc1a03bb62
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/a48e61587ace78af5f2721080cccdc8aa611b74a
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/701f7f2b12ac2fede500fe1f71dc490eb09b8e84
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/a083f48b7c98af62c46dd4f960c75e95d0a8b202
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/cc35134b40998c8439667a85b81e31b78ef39223
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/d70aaae994380b83fcfcb186ec7cf98465acaf61
/run-mysql-test
/run-integration-common-test
/run-integration-ddl-test
/run-tics-test
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/4e14cb832c26d37eed4b898c33ff5af33bd35205
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/093130faacbddf0fda3198a7471c6d891370d62e
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/213b0bb0e68a9baef9da92f25c16124175477f4f
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/462d3d43de0744e45a07a9ea0dafa26d382417db
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/4d65f2f927e7a315d99b65da9c6a7ff29ac9c8cd
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/96f934128bc09da17ada9d66421789d0b5786dc2
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/42dce41ca682dcdb81af7b94aef343898bdda6df
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/132a4e6a4ec9c5e9d655d36c83fa168228637cb8
/run-all-tests
/run-all-tests
/run-check_dev
/run-check_dev
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/fd21f7cb07e445da0b53c2d2ac105e8c7423c135
/run-integration-ddl-test
/run-integration-ddl-test
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/a4053d41883d19c17fe889e3c12d963023595733
/run-all-tests
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/a4053d41883d19c17fe889e3c12d963023595733
/run-unit-test
/run-check_dev
/run-unit-test
Signed-off-by: Weizhen Wang wangweizhen@pingcap.com Signed-off-by: xiongjiwei xiongjiwei1996@outlook.com Signed-off-by: wjhuang2016 huangwenjun1997@gmail.com
What problem does this PR solve?
Issue Number: ref https://github.com/pingcap/tidb/issues/32031
this is a big PR and we split it into many commits, every commit almost has a single purpose. I will introduce them briefly, you may need to reference the doc https://github.com/pingcap/tidb/pull/33629
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 theddl job queue
andreorg
andhistory hash table
. you can see this part in docsetup concurrent ddl env and add ddl worker pool this commit adds the
ddl worker pool
definition, theddl job manager
will find a job and ship it to a worker in the worker pool. Also, this commit provides asessionctx
wrapper, only use in ddl relate. it just wrapsbegin
,commit
andexecute
.add ddl manager to handle ddl job this commit implements the ddl manager, which is used for
you can ref the doc. Also, it adds a function
HandleDDLJob
which will do the ddl job, and it is a replacer ofHandleDDLJobQueue
. The last thing of this commit is addingschemaVersionManager
to update the schema version in a new txn, it prevents the txn conflict with the schema version key.reorg handler for concurrent ddl just implements the partner of the reorg information.
manage ddl jobs for concurrent ddl same as above, the partner of
add job
,delete job
and many other related to history jobchange ddl interface caller because many of the functions need a session now, we just change the caller
add metrics for concurrent ddl add metrics
migrate ddl between table and queue support switch between the old and new ddl framework, migrate the existing ddl job between queue and table
What is changed and how it works?
Check List
Tests
Release note