Commit Graph

32 Commits

Author SHA1 Message Date
xhe
10db4531d8 ddl: refactor bundle[1/2] [5/6] (#24008) 2021-06-11 10:44:34 +08:00
a8ea9a75f2 store/tikv: make failpoints without code generations (#25247) 2021-06-10 17:58:29 +08:00
17e8561040 ddl: speed up the execution time of ddl test and Test Chunk #7 ddl-other (#24780) 2021-05-21 14:14:21 +08:00
xhe
031a9fa18b ddl: refactor rule [4/6] (#24007) 2021-05-14 17:05:38 +08:00
xhe
feea6d6424 ddl: refactor constraints [3/6] (#24006) 2021-04-22 12:53:53 +08:00
ef42b8e4b5 store/tikv: new config TxnScope in tikv config (#24035) 2021-04-21 11:55:53 +08:00
xhe
3ec37294f1 ddl: refactor constraint [2/6] (#24005) 2021-04-17 00:49:51 +08:00
e2fdb00e62 config: fix data race caused by config.Labels (#22977) 2021-03-01 16:02:54 +08:00
daf3337a43 oracle: make @@txn_scope only support local and global (#22784) 2021-02-25 15:26:03 +08:00
35534ae752 *: apply golangci-lint to the new code (#22824) 2021-02-24 18:24:03 +08:00
9e3c0649e4 ddl, session: add tidb_enable_exchange_partition variable (#22638) 2021-02-03 20:36:57 +08:00
xhe
d35f3055ea ddl: support placement rules for exchanging partitions (#22380)
Signed-off-by: xhe <xw897002528@gmail.com>
2021-01-29 15:19:44 +08:00
xhe
fbe1b5acb3 ddl: fix rule cache panic when truncating partitions (#22305)
Signed-off-by: xhe <xw897002528@gmail.com>
2021-01-25 16:16:38 +08:00
xhe
289bc7e79c ddl: concurrent safe api for using rule bundles cache (#22035)
Signed-off-by: xhe <xw897002528@gmail.com>
2021-01-13 10:58:58 +08:00
xhe
ba8223fd0a ddl: fix placement rules compatibility with tiflash (#22065)
Signed-off-by: xhe <xw897002528@gmail.com>
2021-01-12 18:19:30 +08:00
xhe
ffd9011665 ddl: refine placement spec building by yaml (#22018)
Signed-off-by: xhe <xw897002528@gmail.com>
2021-01-05 12:33:14 +08:00
f8bef9b952 session, distsql: make local transaction error msg user-friendly (#22052) 2020-12-31 16:28:33 +08:00
xhe
5886c4b6f6 ddl: check illegal placement label constraint (#22015)
Signed-off-by: xhe <xw897002528@gmail.com>
2020-12-29 11:50:13 +08:00
xhe
3ba64be69f ddl: report error if there is no rule to drop (#22005)
Signed-off-by: xhe <xw897002528@gmail.com>
2020-12-29 11:35:44 +08:00
ce5ce53fa9 ddl, distsql: Support forbiding cross txnScope query all *Reader Executor (#21650) 2020-12-21 15:30:30 +08:00
b74e8b5cb8 ddl: add a switch for alter partition alter placement (#21833)
Signed-off-by: AilinKid <314806019@qq.com>
2020-12-18 10:22:35 +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
15ec9a613e ddl: revise TestTxnScopeConstraint (#21420) 2020-12-02 11:29:48 +08:00
b085cad80c ddl, infoschema: Support aborting the transaction when the placement rules are changed (#21116) 2020-11-23 14:06:24 +08:00
863117ba05 session: Check the partition placement constraint of local transactions (#21039)
Signed-off-by: Song Gao <disxiaofei@163.com>
2020-11-17 14:28:27 +08:00
657ad738bc ddl: defining the placement rule of a leader requires REPLICAS option (#20813) 2020-11-05 14:08:01 +08:00
xhe
86188c6a9c ddl: stable placement cache test (#20770)
Signed-off-by: xhe <xw897002528@gmail.com>
2020-11-03 10:55:25 +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
xhe
db1385d505 ddl: drop placement rules when drop partition (#19223) 2020-08-25 10:19:05 +08:00
xhe
a4d26bd57c ddl: support DROP PLACEMENT clause (#19174) 2020-08-14 15:37:54 +08:00
xhe
a0160612a8 ddl: support ALTER PLACEMENT clause (#19065)
* ddl: check count here

* ddl: drop all rules that will be overrided

* ddl: change ID format

* ddl: local placement deifinition

* ddl: support `ALTER PLACEMENT` clause

* ddl: add test cases

* ddl: fix ID format

* ddl: copy comments too

* ddl: allow ignore replicas with dict constraints

* ddl: rename COUNT to REPLICAS

* ddl: clone method for RuleOp

* ddl: checkPlacementSpec => buildPlacementSpec

* ddl: remove TODO
It is possible to incrementally add replicas. Consider drop later. Let
us support it correctly first.

* ddl: ID format
Datbase/schema ID is added back. A common prefix will improve the
efficience of PD batch operation. Drop a whole db/table will only need
one loop for rules.

* ddl: move const/util to placement package

* ddl: fix test

* ddl: fix format error

* ddl: error check fix

* ddl: use an explicit condition flag

* ddl: adapt parser changes

* ddl: fix go.mod/simplify code path

* ddl: go mod tidy

* ddl: improve tests

* ddl: return new rules instead of appending

* ddl: return constraints instead of appending

* ddl: fix test

* ddl: one more test

* ddl: remove rules rollback, meaningless

* ddl: fix slice

* ddl: add period to comments

* Update ddl/ddl_api.go

Co-authored-by: tangenta <tangenta@126.com>

* ddl: remove unused arguments

* infosync: do not request PD if no ruleOperations

* ddl: a new test suite

Co-authored-by: tangenta <tangenta@126.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-11 15:05:05 +08:00