Commit Graph

178 Commits

Author SHA1 Message Date
6344f7a02e ddl: quickly process the next job after processing the cancelled DDL job (#24146) 2021-04-25 10:53:55 +08:00
552503442e ddl: rollingback add index meets panic leads json unmarshal object error-2 master (#23913) 2021-04-15 23:45:52 +08:00
46f5f21772 ddl: fix ddl hang over when it meets panic in cancelling path (#23204) 2021-03-13 13:50:55 +08:00
6087187afd ddl, metrics: speed up the execution of the DDL job (#22932) 2021-03-03 16:00:54 +08:00
8357f809ff *: remove some useless codes and do tiny update (#22972) 2021-02-26 19:14:53 +08:00
68aaa2fa7e *: fix auto-id allocate tracing (#22371) 2021-01-13 12:19:58 +08:00
xhe
bfb34f80f5 ddl: drop placement rule cache when droping database (#22344)
Signed-off-by: xhe <xw897002528@gmail.com>
2021-01-12 16:46:59 +08:00
be29d7e054 ddl: fix db_test failure caused by domain reload delay under a high overload (#21928)
Signed-off-by: AilinKid <314806019@qq.com>
2020-12-24 15:43:30 +08:00
xhe
8f81ec150d ddl: inherit placement rules from the parent (#21910)
Signed-off-by: xhe <xw897002528@gmail.com>
2020-12-23 22:49:29 +08:00
d19a21d92a ddl, server, session: make gocritic happy (#21544) 2020-12-08 12:09:48 +08:00
0f9d77b07f ddl: Support adding a middle state in altering placement policies (#21356) 2020-12-07 15:12:58 +08:00
ac660c2fa5 ddl: change a log's level from error to warn (#21389)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-01 14:22:18 +08:00
b1f4aa893a standardize change the job state after all other checks (#20212) 2020-11-03 16:32:49 +08:00
xhe
c5d0f40772 ddl: handle placement rule cache for drop/truncate/recover/flashback table (#20622)
Signed-off-by: xhe <xw897002528@gmail.com>
2020-11-02 16:03:57 +08:00
91db54ef8e ddl: Support multiple table rename (#19962) 2020-10-28 11:36:03 +08:00
xhe
45b65d16eb ddl: update rule cache incrementally/pass arguments by ctxvars (#20361) 2020-10-22 19:54:23 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
937949f44d DDL: support drop partition on the partitioned table with global indexes (#19222) 2020-10-19 10:31:15 +08:00
79711ad6b8 ddl: support alter sequence (#20405) 2020-10-14 17:06:11 +08:00
xhe
b61f8bb9ed ddl: make use of the new rule cache api[2/3] (#20208)
Signed-off-by: xhe <xw897002528@gmail.com>
2020-09-28 18:44:12 +08:00
d72adf893a DDL: Reduce the impact on DML when executing partition DDL (#19991) 2020-09-23 14:56:38 +08:00
b7364a317b *: add rollbacking logic for column type change (#19531) 2020-09-15 17:23:00 +08:00
42eaaa590d *: move backfillWorker code to backfilling.go, update logs and comments (#19503) 2020-09-02 15:48:38 +08:00
945f7cc4a0 ddl, tables: support the column type change between the integer types (#19059) 2020-08-26 21:30:14 +08:00
33f3843d5f ddl: avoid DDL retry taking too long (#19328)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-08-26 19:52:21 +08:00
92bf05fb09 ddl: Drop column with single value index (#18852)
* let drop column can drop index which column only have single-value index.

* Fix typo

* Remove unused codes and fix delete range when drop column with single-value index

* Let drop columns can delete single value index related columns

* Refactor unit test

* Add index exists test on drop composite index

* Add invisible index test and more result check on drop column

* Fix typo and refactor indexInfoContains

* Update comments

* Remove unnecessary code

* Remove unused codes

* Fix typo

* Remove unused code and fix comments

* Refactor, remove useless codes

Co-authored-by: bb7133 <bb7133@gmail.com>
Co-authored-by: Arenatlx <ailinsilence4@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-12 15:01:47 +08:00
xhe
4ef3b86e5a *: support ALTER PARTITION clause (#18611) 2020-08-04 10:15:13 +08:00
6088e58fa7 ddl: check the tiflash replica count when setting tiflash replica (#18826) 2020-08-03 15:10:47 +08:00
761a961ba0 kv: refactor MemBuffer and reduce the memory usage (#18372) 2020-07-15 15:26:25 +08:00
6fae78d6cf ddl: use a valid ctx instead of context.Background (#18166) 2020-07-07 15:17:55 +08:00
2acd1f26ce ddl: stabilize ddl tests (#18205)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-28 14:59:12 +08:00
1cc33b0b36 ddl: Support exchange partition (#17149) 2020-06-10 13:31:07 +08:00
fe79325419 ddl: shouldn't ignore change when the job state is rollback done (#17633) 2020-06-04 11:58:55 +08:00
87a1dbd4a1 ddl: fix bug of run ddl job error but actually take effect (#17341) 2020-06-02 23:34:56 +08:00
51015c1c21 *: fix the way to use recover in ddl, and unify using recover in domain and ddl (#16798) 2020-05-18 13:23:47 +08:00
65b7f0f119 ddl: add alter index visibility DDL support (#16914) 2020-05-08 15:17:08 +08:00
7b25ce0d94 *: support auto_random table option (#16750) 2020-04-24 23:14:51 +08:00
1c73deca59 ddl: add syntax for setting the cache step of auto id explicitly. (#15409) 2020-04-10 15:57:51 +08:00
c2538facc9 ddl: Support the operation of adding multi-columns (#15540) 2020-04-08 13:22:25 +08:00
54e7ace1e0 ddl: skip write binlog when ddl type is update tiflash replica status (#16049)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-04-03 17:53:27 +08:00
c81e903804 *: use the revertable sandbox to buffer mutations (#15931) 2020-04-03 14:54:27 +08:00
64ea0ea99f ddl: add missing ErrorCount++ when update Error (#15373) 2020-03-19 16:19:22 +08:00
6ccdf645dc ddl: add a channel to limit multiple DDL jobs writing at the same time (#14342) 2020-03-05 14:13:38 +08:00
3cd5fb61ad *: fix "create or replace view" infoschema is inconsistent (#14832) 2020-02-20 15:04:33 +08:00
a528e60e3b *: add auto_random id cache for statement retrying and table recover (#14711) 2020-02-19 18:53:03 +08:00
62e48ca046 test: optimize session tikv test (#14709) 2020-02-12 18:07:18 +08:00
465af00b46 *: use new registrable terror (#14606) 2020-02-06 16:40:26 +08:00
79eaa967bb ddl, stats: handle add/trunctate partition events (#14500) 2020-01-22 17:44:22 +08:00
b25c82452f ddl: support drop sequence in TiDB (#14442) 2020-01-20 15:49:04 +08:00
ff096ee2cf ddl : support create sequence in TiDB. (#14112) 2020-01-09 19:38:14 +08:00