Commit Graph

104 Commits

Author SHA1 Message Date
7caffd9ba4 privilege, server: support LDAP authentication (#43582)
close pingcap/tidb#43580
2023-05-10 14:51:21 +00:00
0b8f8807d0 *: add a new variable to control whether to invalidate plan cache when related table analyzed (#43390)
close pingcap/tidb#43295
2023-04-25 10:31:54 +00:00
2021b31bdc *: support error handling for distributed adding index (#43075)
close pingcap/tidb#42436, close pingcap/tidb#43029
2023-04-20 17:35:20 +08:00
d6dfb1607c copr: set the default value of load-based replica read threshold to 1s (#43149)
close pingcap/tidb#43148
2023-04-20 01:01:19 +08:00
cd33faf209 planner: enable non-prep plan cache by default (#43145)
ref pingcap/tidb#36598
2023-04-19 21:25:20 +08:00
082e6d630c session: optimizate the session package (#42954) 2023-04-12 13:31:01 +08:00
897603148b disttask: Add task_key column to mysql.tidb_global_task (#42636)
close pingcap/tidb#42610
2023-03-29 00:04:54 +08:00
cb12d335c5 *: improve unit test (#42527) 2023-03-24 13:54:42 +08:00
327b628f51 planner: add more test cases for non-prep plan cache (#42328)
ref pingcap/tidb#36598
2023-03-16 20:16:56 +08:00
8aa4a899a3 session: set tidb_enable_null_aware_anti_join to ON when upgrading to v7.0 (#42272)
close pingcap/tidb#42271
2023-03-16 10:02:40 +08:00
6c03f5e163 *: implement a global task manager and a sub task manager to handle the read/write of global task table and sub-task table (#41979)
close pingcap/tidb#41984
2023-03-13 12:42:37 +08:00
53f15f6ed7 session: set tidb_stats_load_pseudo_timeout to ON when upgrade to v6.5 (#42066)
close pingcap/tidb#42078
2023-03-10 12:33:12 +08:00
49bf4ce6d9 planner: set the tidb_opt_advanced_join_hint to off when upgrade (#42016)
ref pingcap/tidb#36600
2023-03-08 20:45:12 +08:00
33c34f832c bootstrap: add more tests for initialize-sql-file (#41888)
ref pingcap/tidb#35624
2023-03-06 13:43:12 +08:00
5df1913e0f session: fix upgrade (#40182)
close pingcap/tidb#41502
2023-02-16 21:30:02 +08:00
d0919b907a session: set tidb_server_memory_limit to defValue during bootstrap (#41438) 2023-02-16 15:28:37 +08:00
98ef95e66f session: enable foreign_key_checks/tidb_enable_foreign_key by default when upgrade (#41424) 2023-02-15 17:14:21 +08:00
8531018f04 ddl: improve backfill more general (#41093)
close pingcap/tidb#41002
2023-02-10 23:52:00 +08:00
b91e2d9aa1 session: use mDDLTableVersion key to control backfill tables (#40984)
close pingcap/tidb#40980
2023-02-03 11:45:56 +08:00
11f5c1791e *: add support for -initialize-sql-file on first bootstrap (#35625)
close pingcap/tidb#35624
2022-12-28 13:02:16 +08:00
fc714e2108 session: fix tidb_enable_gc_aware_memory_track after upgrade (#40173)
ref pingcap/tidb#39971, close pingcap/tidb#40174
2022-12-26 21:06:16 +08:00
f6127247d3 *: close recordset (#39783) 2022-12-09 14:22:04 +08:00
770e75b47b session: fix data race in TestBootstrap (#39718)
close pingcap/tidb#39682
2022-12-07 18:16:04 +08:00
a7c4c71287 ttl: add system table for TTL status (#39315)
close pingcap/tidb#39272
2022-12-05 15:44:03 +08:00
824ef608c7 *: support password expiration policy (#39035)
ref pingcap/tidb#9709, close pingcap/tidb#38936
2022-12-02 16:36:02 +08:00
40d1ddb364 *: support password reuse policy (#39162)
ref pingcap/tidb#38937
2022-12-02 09:58:01 +08:00
c3565a18b0 planner: set cost model to ver1 for clusters upgrading from pre-6.1 version (#39537) 2022-12-01 17:13:02 +08:00
c88fd23f90 planner: add sqlDigest and planDigest field when show bindings (#39156)
ref pingcap/tidb#39199
2022-11-30 00:04:00 +08:00
78d677e288 session: remove date_add function from push down blacklist in new installed TiDB (#39324)
close pingcap/tidb#39293
2022-11-28 15:48:00 +08:00
c6e1982fb2 sessionctx: enable clustered index by default (#38447) 2022-11-04 10:06:03 +08:00
0e23da6e7c *: create a user using tidb_auth_token authentication (#38585)
ref pingcap/tidb#38504
2022-10-31 11:47:59 +08:00
86dd99962f session: set tidb_opt_range_max_size to 0 when upgrading to v6.4.0+ (#38694)
ref pingcap/tidb#37176
2022-10-28 10:19:58 +08:00
4699c7d896 *: support ATTRIBUTE and COMMENT in CREATE USER and ALTER USER statements (#38201)
close pingcap/tidb#38172
2022-10-20 14:35:54 +08:00
5c4b328b02 variables: enable variable hook to access storage (#38227)
close pingcap/tidb#38225
2022-10-01 02:35:45 +08:00
c4638b70fd *: support metadata lock (#37393)
ref pingcap/tidb#37275
2022-09-18 20:57:00 +08:00
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
9d0f5f72d3 *: enable pessimistic transaction on unistore (#36578) 2022-07-26 21:07:10 +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
193f04db70 session,sessionctx: enable tidb_enable_paging by default (#35275)
close pingcap/tidb#35273
2022-06-23 08:32:37 +08:00
1fac141f35 *: close the resource on error to aovid resource leak (#34837)
close pingcap/tidb#34666, ref pingcap/tidb#34849
2022-05-30 18:00:27 +08:00
a9614850f9 *: move config file option oom-action to sysvar (#34644)
ref pingcap/tidb#33769
2022-05-19 05:16:38 +08:00
d22a8ce409 session: fix upgraded cluster mysql.user columns order is different from new cluster (#33868)
close pingcap/tidb#33650
2022-04-28 01:12:55 +08:00
20a58199cf *: move config file option mem-quota-query to sysvar (#34141)
ref pingcap/tidb#33769
2022-04-26 03:58:50 +08:00
5c931aadc8 Revert "topsql: enable topsql feature by default (#33195)" (#33493)
close pingcap/tidb#33492
2022-03-28 22:44:27 +08:00
44cf3986e3 topsql: enable topsql feature by default (#33195)
close pingcap/tidb#33194
2022-03-17 15:26:31 +08:00
e87bb52a6a bindinfo: refactor some codes in bindinfo package (#33094) 2022-03-15 20:55:23 +08:00
4be9e30b0a bindinfo: rename Using status to Enabled status (#32801)
ref pingcap/tidb#32466
2022-03-07 17:21:49 +08:00
7de4876888 session: dom.Close() in boostrap_test (#31973)
ref pingcap/tidb#31966
2022-02-07 17:47:35 +08:00
60f0948fb4 session: fix data race in the TestUpgradeVersion83 (#31889)
close pingcap/tidb#31831
2022-01-23 17:27:46 +08:00
4bda04f15c planner: introduce historical statistic dumping triggered by analyze (#31032)
close pingcap/tidb#18745
2022-01-21 16:35:46 +08:00