Commit Graph

352 Commits

Author SHA1 Message Date
22e5ebd310 *: use the Local TSO to update ForUpdateTS (#21490)
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2020-12-04 13:41:47 +08:00
f7f48e3586 infosync: omit the 404 error when /config/placement-rule is not existed (#21247)
Signed-off-by: Ryan Leung <rleungx@gmail.com>
2020-11-26 13:43:22 +08:00
4246568d20 domain, kv: release table which was unlocked (#21180) 2020-11-23 16:27:00 +08:00
975bbaf294 ddl: release memory cache for all tidb-servers when unlock tables (#21006)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-11-13 18:06:05 +08:00
8d35f17c17 Update the errors dependence to the latest version (#20917) 2020-11-10 09:50:39 +08:00
xhe
9cb558d03c ddl: remove useless placement methods (#20636)
Signed-off-by: xhe <xw897002528@gmail.com>
2020-10-28 15:26:15 +08:00
272f964031 executor: support global kill (#17649) 2020-10-27 19:39:20 +08:00
c54833adb6 infosync: fix query metrics_schema panic when start TiDB without PD/TiKV (#20434) 2020-10-27 17:36:23 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
bdb6c49600 *: collect index usage information from point get and dump them to KV (#20126) 2020-10-16 16:17:34 +08:00
81fa1b37e8 *: refactor GetSnapshot (#20475)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-10-16 11:30:43 +08:00
dcefa58035 *: use global stats & make ddl/feedback/show/export works(part III) (#20271) 2020-10-14 16:11:33 +08:00
170e2fec92 *: collect multiple partitions and store in tidb (part II) (#19899) 2020-09-29 21:25:56 +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
xhe
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
xhe
a8b06778c4 ddl: add verification for placement rule request (#20191)
Signed-off-by: xhe <xw897002528@gmail.com>
2020-09-24 10:44:37 +08:00
xhe
934ecf2db1 ddl: add a framework for placement rules cache (#20086) 2020-09-23 14:40:58 +08:00
d8e43216e0 *: add index-usage-sync-lease config variable (#19842) 2020-09-16 20:19:52 +08:00
4cb99a74b6 domain: refine log for info syncer and topology syncer (#19995)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-09-16 12:13:08 +08:00
c679f847fc *: Bug Fix/CLUSTER_INFO system table may not work after PD is scaled-in (#19355) 2020-09-16 11:50:03 +08:00
2a3a5ab076 *: disable new partition prune in master distribution (#19911) 2020-09-14 16:26:54 +08:00
2836011470 executor, planner: refactor analyze tableID to analyzeTableID & add CanRuntimePrune (#19846)
* executor, planner:  refactor analyze tableID to analyzeTableID

* *: add util to help decide whether use new runtime prune partition executor

* address comments

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-08 23:49:39 +08:00
449587a085 *: using standard error to replace terror (#19425) 2020-09-08 20:15:51 +08:00
9c73cbaa3b domain: make TestT more stable (#19879) 2020-09-08 18:41:38 +08:00
xhe
82a3724748 ddl: alter rules when truncating partitions (#19505) 2020-09-04 14:54:05 +08:00
xhe
db1385d505 ddl: drop placement rules when drop partition (#19223) 2020-08-25 10:19:05 +08:00
2f100eca2b config: Add labels configuration (#19212)
* add labels

* add config test

* fmt file

* add test and example

* add intergration test

* add comment

* address the comment

* solve test error

* address the comment

* fix comment

* fix comment error

* remove example

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-24 19:17:51 +08:00
18b4e2b1a1 schemas: decrease fetchSchemaConcurrency (#18881)
* decrease fetchSchemaConcurrency

* remove useless code

Co-authored-by: Lynn <zimu_xia@126.com>
Co-authored-by: HuaiyuXu <391585975@qq.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-20 15:06:40 +08:00
37984d7cb0 tests: improve tests for Windows platform (#19088)
* tests: improve tests for Windows platform

* fix race build

* update badger to fix kill issue on Windows

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-13 17:17:19 +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
xhe
4ef3b86e5a *: support ALTER PARTITION clause (#18611) 2020-08-04 10:15:13 +08:00
03003538d1 *: fix a lot of typos (#18917) 2020-08-03 11:03:33 +08:00
8a6554a21f telemetry: disable telemetry by default for non-community edition (#18524)
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
2020-07-15 11:37:36 +08:00
07c6788ef2 session: add no register API for using TiDB as a library (#17513)
* domain,session: add NoRegister entry

* session: run fmt

* session: remove old NoRegister API

* config: add no register config

* config: add example to example config file.

* session: remove unused type

* *: rename NoRegister to SkipRegisterToDashboard

Co-authored-by: crazycs <crazycs520@gmail.com>
2020-07-14 12:08:38 +08:00
3cd5260773 ddl: collect actionTypes for schema change (#18195)
* record action types in schema change history

* change comments

* remove comment

* refactor, remove some params and return values

* change value to pointer, remove useless comments

* refactor comments

* change return value

* refactor

* remove all info

* fix action type append

* update comment

Co-authored-by: Lynn <zimu_xia@126.com>
2020-07-08 11:41:09 +08:00
3b63270909 telemetry: Add telemetry initial implementation (#18180)
Signed-off-by: Breezewish <me@breeswish.org>

Co-authored-by: crazycs <crazycs520@gmail.com>
Co-authored-by: Lynn <zimu_xia@126.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-06-24 14:41:46 +08:00
73e6e5e04b server: add context cancel for domain close (#18074) 2020-06-19 15:05:23 +08:00
bbeb4d029e tikv: fix "Got too many pings" GRPC error in PD-server follower (#17885) 2020-06-11 13:53:48 +08:00
d66d5028da *: support plain insert on cluster index table (#17674) 2020-06-05 13:23:43 +08:00
3a4e733af6 test: fix testleak in TestIntegration (#17667)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-04 17:34:49 +08:00
a97e886a12 domain: print some logs to investigate the leak (#17503) 2020-06-01 15:41:29 +08:00
ac30f5322e mockstore: introducing embedded unistore (#17156) 2020-05-18 17:28:44 +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
dcafb527ff *: Handle the error of "CampaignOwner" (#16470) 2020-05-09 14:28:05 +08:00
64c58e419c domain: print stack info to investigate TestInfo leak (#17031) 2020-05-08 15:49:40 +08:00
0ad7ce6cda test: add BeforeTest in TestInfo (#16756) 2020-04-23 17:45:49 +08:00
db762e1fb0 domain: rename binary_path to deploy_path (reopen #16585) (#16708) 2020-04-22 20:57:44 +08:00
0974ef2605 test: stable global var test (#16610) 2020-04-22 17:30:31 +08:00
69dd97d3f8 server: use single flight to load global variables (#16489) 2020-04-17 21:38:40 +08:00
6350c7b5d1 domain: log when the loops in domain exited (#16459) 2020-04-17 14:58:01 +08:00