Commit Graph

2266 Commits

Author SHA1 Message Date
a89ef1f276 *: support ACCOUNT (UN)LOCK when creating/altering user (#37052)
close pingcap/tidb#35961, close pingcap/tidb#37051
2022-08-25 16:12:22 +08:00
f5d3df3667 *: change integration.BeforeTest to integration.BeforeTestExternal to avoid skip tests (#37341)
close pingcap/tidb#37340
2022-08-25 14:58:21 +08:00
16f015aa25 util/ranger: avoid building ranges twice in detachCNFCondAndBuildRangeForIndex (#37177)
ref pingcap/tidb#37176
2022-08-25 14:00:21 +08:00
7286061bc9 *: enable fieldalignment (#35802) 2022-08-24 15:56:21 +08:00
81a93a6977 executor, util: fix UnionScan Next() skip reading data when passed chunk capacity is 0 (#36961)
close pingcap/tidb#36903
2022-08-24 12:38:21 +08:00
afc3276d9f *: enable linter for executor/aggregate.go (#37015) 2022-08-23 22:20:21 +08:00
78b32f3cd4 *: fix the order of FallbackOldAndSetNewAction (#37272)
close pingcap/tidb#37058
2022-08-23 19:08:20 +08:00
fe4e6ba749 kv,store/copr: make kv.KeyRange the same with coprocessor.KeyRange, so we can use unsafe optimization (#37288)
close pingcap/tidb#37286
2022-08-23 18:20:20 +08:00
75e0885eff *: allow setting placement policy and tiflash replica at the same time in one table (#37252)
close pingcap/tidb#37171
2022-08-23 11:36:20 +08:00
e0da196b41 planner: support HashJoin cost detail (#37012)
ref pingcap/tidb#36962
2022-08-22 15:48:20 +08:00
8c79898896 txn: seperate the prewrite and commit details information to make it clear (#37158)
ref pingcap/tidb#34106
2022-08-19 14:14:52 +08:00
8511b9b5ac lightning: Fix panic when downstream table schema has changed (#36805)
close pingcap/tidb#34163
2022-08-19 10:40:52 +08:00
ad0f3ddcd7 ddl: forbid exchange partition with temporary table (#37204)
close pingcap/tidb#37201
2022-08-18 17:54:52 +08:00
5dc3e58485 planner: introduce the general plan cache (#37150)
ref pingcap/tidb#36598
2022-08-16 20:24:51 +08:00
39e00ebe07 util: set 50 shard_count (#37105) 2022-08-15 19:24:50 +08:00
d6d0ce7b10 *: gofmt code for adapting go 1.19 (#36832)
ref pingcap/tidb#36879
2022-08-11 12:50:49 +08:00
c3d14dc044 util: fix unstable test TestCheckCN (#37016)
ref pingcap/tidb#36866
2022-08-10 17:04:49 +08:00
42935af3cc parser,ddl: Interval partitioning (#35662)
ref pingcap/tidb#19132, close pingcap/tidb#35683
2022-08-09 19:06:49 +08:00
239e394239 util/chunk: fix a bug that chunk resize does not set the correct null bitmap (#36827)
close pingcap/tidb#36758
2022-08-03 20:08:06 +08:00
8e9e839190 planner: support cost detail framework (#36641)
ref pingcap/tidb#29661
2022-08-03 19:56:05 +08:00
2d9e0d8ab3 session: improve the log for unsupport collation when connecting (#34965)
close pingcap/tidb#34964
2022-08-03 19:12:05 +08:00
c060208b2f *: move config file option oom-use-tmp-storage to sysvar (#36679)
ref pingcap/tidb#33769
2022-08-02 16:58:05 +08:00
a68ac9e73d exectuor: reduce listInDisk.GetChunk memory usage(constructing of chunk in rows) (#36738)
close pingcap/tidb#35636
2022-08-02 14:46:05 +08:00
xhe
9a16a8dd19 *: replace defer clean with t.Cleanup (#36722)
close pingcap/tidb#36721
2022-08-01 17:34:05 +08:00
fc217d432c config, sysvar: add config instance.enable_ddl and sysvar tidb_enable_ddl (#35425)
ref pingcap/tidb#34960
2022-08-01 15:02:06 +08:00
158ba1a1d9 *: enable part revive for all code (#36703) 2022-08-01 14:02:06 +08:00
0aca188e7e util/mock: set sessionvars EnableChunkRPC to true for mock.Context (#36726)
close pingcap/tidb#36725
2022-07-30 14:16:03 +08:00
8e77ce264c *: introduce @@tidb_max_paging_size system variable for tuning (#36599)
close pingcap/tidb#36328
2022-07-29 15:29:12 +08:00
e3ceffa580 ddl: invisibility for plannner (#36634) 2022-07-28 13:45:10 +08:00
212d62ee41 statistics: support tracking histogram (#36170)
ref pingcap/tidb#34052
2022-07-28 11:11:11 +08:00
678bbeefd0 admin: rename the same name field in the log (#36626) 2022-07-27 21:39:11 +08:00
b70207d849 planner/core, util/plancodec: fix wrongly encoded plan which might cause panic (#36611)
close pingcap/tidb#36609
2022-07-27 19:35:11 +08:00
f22098cc5d br: don't encode key of raw kv. (#36491)
ref pingcap/tidb#36490
2022-07-27 19:05:11 +08:00
9ee028002e dbutil: fix wrong syntax for SHOW GRANTS USING (#36565)
close pingcap/tidb#36564
2022-07-26 21:57:11 +08:00
b0c6c5afa7 *: cleanup default sysvar value usage (#36487)
close pingcap/tidb#36485
2022-07-26 19:51:10 +08:00
bf743a6ca0 *: enable flaky test for all test (#36385)
close pingcap/tidb#36404
2022-07-22 15:35:09 +08:00
0b1ad27b1a server: skip check tiflash version (#36451)
close pingcap/tidb#36449
2022-07-22 13:01:09 +08:00
ab513bf0ca ddl: support concurrent ddl (#32169)
* 1. 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 the ddl job queue and reorg and history hash table

* 2. setup concurrent ddl env and add ddl worker pool

adds the ddl worker pool definition, the ddl job manager will find a job and ship it to a worker in the worker pool.
Also, this commit provides a sessionctx wrapper, only use in ddl relate. it just wraps begin, commit and execute

* 3. add ddl manager to handle ddl job

* 4. reorg handler for concurrent ddl

just implements the partner of the reorg information.

* 5. manage ddl jobs for concurrent ddl

add the partner of add job, delete job and many others related to history job
because many of the functions need a session now, we just change the caller

* 6. add metrics for concurrent ddl

add metrics

* 7. support multiple tables

* 8. fix test

* 9. migrate ddl between table and queue

support switch between the old and new ddl framework, migrate the existing ddl job between queue and table

* 10. check tikv version and set reorg worker count according cpu count

* *: add featuretag on tests

Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>

* use a determined table id for 3 tables

* remove ctx value

* add GetSchemaVersionWithNonEmptyDiff function

* address tangenta and zimulala comment

* use only one etcd path

* make ActionRenameTable support multi-schema

* reset sql digest to make top sql work correct

* add comment

* fix test

* remove 0 for schema version lock

Co-authored-by: xiongjiwei <xiongjiwei1996@outlook.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Co-authored-by: wjHuang <huangwenjun1997@gmail.com>
2022-07-20 21:20:07 +08:00
fd6f5dd798 *: GC-aware memory track for analyze (#35248)
close pingcap/tidb#34996
2022-07-20 20:17:09 +08:00
a52656fde4 *: add binary plan in stmt summary and slow log/query (#35698)
close pingcap/tidb#35889
2022-07-20 18:21:09 +08:00
d00b984f4c executor, statistics: analyze use MaxUint64 ts to read data (#35232)
close pingcap/tidb#35233
2022-07-20 16:09:08 +08:00
0cecfc85af util/paging: choose min paging size default value as 128, and max value as 8192 (#36331)
close pingcap/tidb#36328
2022-07-19 21:57:08 +08:00
d48f40a09c util, session: enable paging for more ut (#36259)
ref pingcap/tidb#35633
2022-07-19 17:33:08 +08:00
8af8341cca planner: Table scan in TiFlash not keep order (#36232)
close pingcap/tidb#36231
2022-07-19 00:51:07 +08:00
8b30e52bcf ddl: only use one schema version for the non-revertible step (#36262)
ref pingcap/tidb#14766
2022-07-18 21:49:07 +08:00
4cade24ed6 *: support the binary plan through EXPLAIN format='binary' and tidb_decode_binary_plan (#36221)
ref pingcap/tidb#35889
2022-07-18 16:27:07 +08:00
df31ac65a4 execdetails: output write details in RuntimeStats (#35814)
ref pingcap/tidb#34487
2022-07-18 15:01:07 +08:00
f675cf619b ddl: ban set tiflash mode under unsupported case (#36211)
ref pingcap/tidb#35850
2022-07-18 09:53:06 +08:00
911e7cc360 *: enable revive (#35970)
ref pingcap/tidb#35345
2022-07-15 16:03:06 +08:00
ce4edc9df4 planner: fix optimizer trace may miss operators in some cases (#35058)
close pingcap/tidb#31811
2022-07-15 13:59:05 +08:00