Commit Graph

85 Commits

Author SHA1 Message Date
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
acff9c3cff *: Change stmt summary and capture plan baselines to GLOBAL only (#30756) 2022-01-12 13:29:42 +08:00
807ca05230 sessionctx: enable IndexMerge by default (#30650)
close pingcap/tidb#29597
2021-12-27 12:19:49 +08:00
4dc385ce8b test: merge serial tests in ddl, infoschema, session, store, table, telemetry and types (#30874) 2021-12-23 20:01:47 +08:00
2f9d591ef7 session: migrate test-infra to testify for tidb_test.go and bootstrap_test.go (#28555) 2021-10-11 10:19:24 +08:00
6eb02fbe5e session: support references on column (#28546) 2021-10-07 12:23:22 +08:00
75ee932f00 session: update Host type to char(255) in mysql.* tables for compatible with mysql-8.0 (#27887) 2021-09-13 11:18:39 +08:00
6267e0fbe3 session: change the global variable tidb_stmt_summary_max_stmt_count value from 200 to 3000 when upgrade (#27321) 2021-09-10 21:58:39 +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
a8adc4cf8e *: fix many leaks of the test case (#26909) 2021-08-06 13:55:12 +08:00
350cbd1f69 session: tiny changes to reduce object allocations (#26244) 2021-07-19 17:53:34 +08:00
a8b1f687e0 session: fix a bug when updating duplicate bindings (#25168) 2021-06-04 22:40:28 +08:00
c287bcb48c executor: Add plugin column to mysql.user (#24894) 2021-05-28 16:33:36 +08:00
f1521632e2 executor: fix a concurrent-access problem caused by accessing a single parser object in session concurrently (#24338) 2021-04-29 18:11:57 +08:00
3cf2bf9120 session: add session scope for tidb_enable_clustered_index (#23704) 2021-03-30 23:31:24 +08:00
5a4d89416b session: fix bug user privileges change after upgrade from 4.0.11 to 5.0 (#23403) 2021-03-25 13:07:23 +08:00
2bea06ed23 util, types: don't let SPM be affected by charset (#23161) 2021-03-12 22:39:10 +08:00
1d99292455 *: hide the system variables tidb_track_aggregate_memory_usage (#23184) 2021-03-12 17:59:21 +08:00
67e4528018 executor: initialize expensive query handler on domain creation (#21340) 2021-03-11 16:10:55 +08:00
6f250b625e *: fix a bug that collation is not handle for text type (#23045) 2021-03-03 22:04:54 +08:00