c589ee5471
*: remove direct placement from models ( #31816 )
...
close pingcap/tidb#31427
2022-01-20 00:47:45 +08:00
ec4da9840d
ddl: Wrap TiFlash and its pd rule management into InfoSyncer ( #31315 )
...
ref pingcap/tidb#29924
2022-01-06 13:56:37 +08:00
3de726510f
placement: fix majority schedule when primaryRegion and regions are same ( #31312 )
...
close pingcap/tidb#31271
2022-01-05 14:14:36 +08:00
33e948941c
placement: remove isolation level and constraints completely ( #31189 )
...
close pingcap/tidb#31052
2022-01-01 15:53:51 +08:00
1cc0b51acd
placement: quorum number done right ( #31188 )
...
close pingcap/tidb#31186
2021-12-30 20:25:50 +08:00
f40bfa171a
placement: forbid setting replicas with dict syntax ( #31133 )
...
close pingcap/tidb#31127
2021-12-30 19:51:50 +08:00
93d28b9d3f
placement: give default 2 followers for non-sugar syntax ( #31000 )
2021-12-24 14:55:47 +08:00
b9eb9f6768
ddl: add format error for incorrect dict syntax in the placement rule ( #30919 )
...
close pingcap/tidb#30454
2021-12-23 11:59:48 +08:00
9d1e29d7cf
placement: remove isolationlevel ( #30859 )
...
close pingcap/tidb#30858
2021-12-22 15:27:48 +08:00
c75ea8526b
ddl: handle the incorrect number of placement followers ( #30715 )
2021-12-16 22:24:36 +08:00
bb8774bf21
*: Modify placement rule index to reserve some indexes for future work ( #30737 )
2021-12-16 12:44:36 +08:00
7aa86cc96a
*: Enable gosec for implicit memory aliasing in for loop ( #28996 )
2021-11-19 20:07:48 +08:00
199d73438b
*: Move some bundle methods to bundle package and add some tests ( #29691 )
2021-11-15 14:27:06 +08:00
dbea9892c4
*: Remove old syntax ALTER TABLE ... ADD/REMOVE/ALTER PLACEMENT POLICY ... ( #29603 )
2021-11-10 01:19:06 +08:00
1995eaeb41
ddl: fix the create table with policy will cause the PD failure ( #29081 )
2021-10-26 18:58:48 +08:00
af811b6e38
placement: refine placement options check ( #29050 )
2021-10-26 12:58:48 +08:00
94e30df8e2
parser: fix compiling, add unit tests ( #28700 )
2021-10-11 23:15:25 +08:00
b63bc2bce4
ddl: implement the placement rules inheritance logic ( #28365 )
2021-10-08 17:21:24 +08:00
2a02e6e41d
placement: refine the bundle contruction logic ( #28450 )
2021-10-02 08:36:48 +08:00
d14566c7ed
ddl: add sync bundles logic for creating and droping ( #28037 )
2021-09-24 00:22:46 +08:00
1c2437e2ea
placement: construct bundle from options ( #27814 )
2021-09-13 12:02:39 +08:00
113448b7ce
ddl: validate the placement policy constraint when create it ( #27668 )
2021-08-31 13:08:13 +08:00
7755d25aba
*: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers ( #27198 )
2021-08-16 18:52:00 +08:00
2d42fe70c3
placement: Update go-yaml version ( #25815 )
2021-07-20 15:27:35 +08:00
3bbb2c0fec
ddl: refactor bundle[2/2] [6/6] ( #22415 )
2021-07-08 11:57:29 +08:00
10db4531d8
ddl: refactor bundle[1/2] [5/6] ( #24008 )
2021-06-11 10:44:34 +08:00
031a9fa18b
ddl: refactor rule [4/6] ( #24007 )
2021-05-14 17:05:38 +08:00
feea6d6424
ddl: refactor constraints [3/6] ( #24006 )
2021-04-22 12:53:53 +08:00
3ec37294f1
ddl: refactor constraint [2/6] ( #24005 )
2021-04-17 00:49:51 +08:00
d4164ff372
ddl: rename const to common, separate its test [1/6] ( #24004 )
2021-04-15 22:05:52 +08:00
a6b2cbe051
ddl: fix GetLeaderDCByBundle error ( #22517 )
2021-01-25 21:00:19 +08:00
ba8223fd0a
ddl: fix placement rules compatibility with tiflash ( #22065 )
...
Signed-off-by: xhe <xw897002528@gmail.com >
2021-01-12 18:19:30 +08:00
5886c4b6f6
ddl: check illegal placement label constraint ( #22015 )
...
Signed-off-by: xhe <xw897002528@gmail.com >
2020-12-29 11:50:13 +08:00
8f81ec150d
ddl: inherit placement rules from the parent ( #21910 )
...
Signed-off-by: xhe <xw897002528@gmail.com >
2020-12-23 22:49:29 +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
208d271e2e
ddl, placement: Provide API to obtain the DC information of partitions ( #20931 )
2020-11-12 14:11:51 +08:00
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
9660283d2d
infoschema: Provide a system table to query placement rules ( #20616 )
2020-10-27 14:35:38 +08:00
67f78d037f
ddl, store: Remove placement rules when the GC worker removes partitions ( #20575 )
2020-10-22 17:22:03 +08:00
412cf83592
ddl: make use of the new rule cache api[3/3] ( #20291 )
2020-09-30 16:01:21 +08:00
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
0673f3376f
ddl: make use of the new rule cache api[1/3] ( #20166 )
...
Signed-off-by: xhe <xw897002528@gmail.com >
2020-09-25 10:27:38 +08:00
934ecf2db1
ddl: add a framework for placement rules cache ( #20086 )
2020-09-23 14:40:58 +08:00
82a3724748
ddl: alter rules when truncating partitions ( #19505 )
2020-09-04 14:54:05 +08:00
0d997f2b8b
update pd / br / unistore / tidb-tools dependencies ( #19323 )
2020-08-20 16:55:34 +08:00
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