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
696d7d06e9
*: REORGANIZE PARTITION ( #38535 ) ( #41096 )
...
close pingcap/tidb#38535
2023-02-11 20:28:00 +08:00
09d3fa9d88
txn: Fix the issue that analyze panics when aggressive locking is enabled globally ( #41196 )
...
close pingcap/tidb#41194
2023-02-09 10:19:59 +08:00
15bac9ea91
ddl: show more jobs in the tidb_mdl_view ( #40860 )
...
close pingcap/tidb#40838
2023-02-03 17:19:56 +08:00
ab1e57650c
session: fix bad log ( #40948 )
...
close pingcap/tidb#40947
2023-02-01 19:45:56 +08:00
9ebd766b53
util: add InTest to check whether to be in test ( #40927 )
...
close pingcap/tidb#40929
2023-02-01 15:27:56 +08:00
4686338d0e
ttl: add table mysql.ttl_job_history to store ttl job histories ( #40655 )
...
close pingcap/tidb#40654
2023-01-29 10:19:53 +08:00
b61932461b
ttl: submit ttl scan task to the system table ( #40422 )
...
close pingcap/tidb#40362 , ref pingcap/tidb#40363
2023-01-13 15:51:46 +08:00
f7de8beede
*: remove the support of the old ddl framework ( #39684 )
...
ref pingcap/tidb#39824
2022-12-30 18:30:18 +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
388e008846
statistics: add source column for stats_meta_hisotry table ( #39835 )
2022-12-14 14:38:52 +08:00
59cda14a4e
*: Support Failed-Login Tracking and Temporary Account Locking ( #39322 )
...
close pingcap/tidb#38938
2022-12-10 07:45:44 +08:00
8e742bf972
bootstrap: increase current bootstrap version and fix comment ( #39700 )
...
close pingcap/tidb#39699
2022-12-07 16:38: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
89e9078fe1
planner: fix panic when upgrade from 4.0.16 to master ( #39538 )
...
close pingcap/tidb#39527
2022-12-02 01:26:02 +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
d3f7ec0021
br: skip compatibility check for the mysql.user table when restoring ( #39460 )
...
close pingcap/tidb#38785
2022-12-01 14:40:01 +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
ba16dba2c2
*: use a key to decide mdl is enabled or not ( #39154 )
2022-11-17 18:43:57 +08:00
5aa66cb5c2
domain: support dump plan replayer capture task during query ( #39125 )
...
ref pingcap/tidb#38779
2022-11-16 12:41:54 +08:00
238caf6571
*: add statistic lock/unlock function ( #38387 )
2022-11-11 22:25:54 +08:00
ddb43554cf
domain: support plan_replayer_task system table ( #39019 )
...
close pingcap/tidb#38779
2022-11-11 15:19:53 +08:00
066e9c81d7
domain: support plan_replayer_status system table ( #38957 )
...
close pingcap/tidb#38779
2022-11-10 12:05:52 +08:00
490e4c4d60
session, sessionctx: enable metadata lock by default ( #38866 )
...
close pingcap/tidb#37275 , ref pingcap/tidb#38890
2022-11-07 09:37:50 +08:00
114d8c1195
*: enable global memory control by default ( #38899 )
2022-11-04 21:36:01 +08:00
c799b0f165
*: disable global memory control by default ( #38859 )
2022-11-03 19:32:01 +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
fb6a13169e
session: tidb_server_memory_limit inherits the value of server-memory-quota when upgrading ( #38628 )
...
ref pingcap/tidb#37816
2022-10-27 15:23:57 +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
c4638b70fd
*: support metadata lock ( #37393 )
...
ref pingcap/tidb#37275
2022-09-18 20:57:00 +08:00
c646842f29
sessionctx: Change default tidb_partition_prune_mode from static to dynamic ( #37712 )
...
close pingcap/tidb#37713
2022-09-14 20:00:59 +08:00
97f66c3fec
*: use tidb version to decide insert internal DDL into queue or table ( #36782 )
...
close pingcap/tidb#36761
2022-08-02 21:12:06 +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
58dae93f44
ddl: wait until there is an owner in the cluster ( #36664 )
...
close pingcap/tidb#36659
2022-07-28 19:43:11 +08:00
5c42aae575
upgrade: add a variable to make insert ddl job force to queue ( #36614 )
...
close pingcap/tidb#36601
2022-07-27 17:33:12 +08:00
9d0f5f72d3
*: enable pessimistic transaction on unistore ( #36578 )
2022-07-26 21:07:10 +08:00
b0c6c5afa7
*: cleanup default sysvar value usage ( #36487 )
...
close pingcap/tidb#36485
2022-07-26 19:51: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
2193bfe3b7
*: remove system var tidb_enable_change_multi_schema ( #36167 )
...
ref pingcap/tidb#14766
2022-07-14 10:37:05 +08:00
b40fc86538
session, sessionctx/variable: ensure sysvars are always in lower case ( #35659 )
...
close pingcap/tidb#35658
2022-07-06 16:49:02 +08:00
65e0b8e541
client: KV requests with source label ( #34833 )
...
close pingcap/tidb#33963
2022-07-01 19:46:39 +08:00