6afbfa2ffc
executor: close result ( #36424 )
2022-07-21 17:47:09 +08:00
1e391316fc
executor: Remove version comment for MySQL 3.23.x syntax ( #36342 )
...
ref pingcap/tidb#36270
2022-07-21 13:53:09 +08:00
e3eea88801
telemetry: add telemetry for savepoint ( #36354 )
...
close pingcap/tidb#36353
2022-07-21 02:57:08 +08:00
04228632f6
table, meta: fix auto_increment initialization for temporary tables ( #36319 )
...
close pingcap/tidb#36224
2022-07-21 00:49:08 +08:00
e9f3980853
table partition: exchange partition with table enhance ( #35749 )
...
close pingcap/tidb#35996
2022-07-21 00:13: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
a6b3f3d454
compact: Add syntax for COMPACT command without specifying the replica ( #36368 )
...
ref pingcap/tidb#34749
2022-07-20 16:53: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
4b50e67452
statistics: separte complex file and forbid embedding ( #36318 )
...
close pingcap/tidb#36284
2022-07-20 14:03:08 +08:00
98c27d86b9
ddl: fix data race in the setDDLLabelForDiagnosis ( #36207 )
...
close pingcap/tidb#36343
2022-07-20 13:09:08 +08:00
460d57c8ba
log-backup: fix error that check whether partitionInfo.Columns is nil while it is [] ( #36349 )
...
close pingcap/tidb#36348
2022-07-20 12:15:08 +08:00
a0cced2167
executor: fix show create table with set and enum ( #36327 )
...
close pingcap/tidb#36317
2022-07-19 20:07:08 +08:00
afd71bdefd
executor: support dispatch cop request to closest replica adaptively ( #35927 )
...
ref pingcap/tidb#35926
2022-07-19 17:59:07 +08:00
f84554bd07
expression: fix binary str numeric result type ( #36258 )
...
close pingcap/tidb#27698
2022-07-19 16:43:07 +08:00
67be460efe
planner: enable the new cost interface by default ( #36241 )
...
ref pingcap/tidb#35240
2022-07-18 21:21:08 +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
c28bac3d72
planner: support rewrite for skew group distinct aggregate to avoid skew execution ( #36181 )
...
close pingcap/tidb#36169
2022-07-18 15:29:07 +08:00
8c380e3107
ddl: support alter table options for multi-schema change ( #36236 )
...
ref pingcap/tidb#14766 , close pingcap/tidb#36234
2022-07-18 10:39: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
f47978c3c2
log-backup: add the switch for log backup ( #36115 )
...
ref pingcap/tidb#29501
2022-07-15 14:31:06 +08:00
fa00fc5cd5
*: set fine grain timeout and update bazel config ( #36220 )
2022-07-15 11:11:05 +08:00
9a2ed52119
server, sessionctx: support token-based authentication ( #36152 )
...
close pingcap/tidb#35913
2022-07-14 18:29:06 +08:00
7953d60c1b
*: switch to flat plan in stmt summary, slow log, etc ( #36069 )
...
ref pingcap/tidb#35888
2022-07-14 17:37:06 +08:00
2193bfe3b7
*: remove system var tidb_enable_change_multi_schema ( #36167 )
...
ref pingcap/tidb#14766
2022-07-14 10:37:05 +08:00
5eec739f21
executor: optimize cursor read point get by reading through pessimistic lock cache ( #36149 )
...
ref pingcap/tidb#36162
2022-07-13 22:49:05 +08:00
0b427e1fd6
*: add tidb_min_paging_size system variable ( #36107 )
...
close pingcap/tidb#36106
2022-07-13 22:27:05 +08:00
2f934d67a2
*: support show ddl jobs for sub-jobs ( #36168 )
...
ref pingcap/tidb#14766
2022-07-13 20:57:05 +08:00
28c96008a9
executor: check the error returned by handleNoDelay ( #36105 )
...
close pingcap/tidb#35105
2022-07-13 19:45:05 +08:00
f581ec3a45
test: remove meaningless test and update bazel ( #36136 )
2022-07-13 16:41:05 +08:00
0e13d5d009
ddl: implement table granularity DDL for SchemaTracker ( #36077 )
...
ref pingcap/tidb#35933
2022-07-13 14:57:05 +08:00
bdc6397023
executor: support tidb memory debug mode ( #35322 )
...
ref pingcap/tidb#33877
2022-07-13 12:33:06 +08:00
87052dc2f8
executor: fix index_lookup_hash_join hang when used with limit ( #35820 )
...
close pingcap/tidb#35638
2022-07-11 19:41:05 +08:00
d10d254572
util: let TypeFloat should be decoded as Float32 in Chunk ( #35978 )
...
close pingcap/tidb#35910
2022-07-11 18:57:05 +08:00
1a9a7a614c
statistics,planner: let index support sync stats ( #35879 )
...
ref pingcap/tidb#35764
2022-07-11 17:23:05 +08:00
49b4bf96bd
ddl: implement Schema level API for DM SchemaTracker ( #35991 )
...
ref pingcap/tidb#35933
2022-07-11 11:31:05 +08:00
5a01b63475
executor: fix dead loop for indexMergeJoin in paging. ( #35918 )
...
close pingcap/tidb#35831
2022-07-11 11:11:05 +08:00
e5487a94e0
perfschema: add session_variables table to performance_schema ( #36003 )
...
close pingcap/tidb#35894
2022-07-08 10:33:03 +08:00
6e22e47f06
parser,ddl: support 'set tiflash mode' ddl and support check tiflash mode in tiflash_replica table ( #35851 )
...
ref pingcap/tidb#35850
2022-07-07 15:15:03 +08:00
adab58b360
infoschema, executor: Add variables_info table to see sysvar details ( #35995 )
...
close pingcap/tidb#21446
2022-07-07 11:51:02 +08:00
562bb9f9e2
executor: fix incorrect runtime stats when there are applys ( #35919 )
...
ref pingcap/tidb#35889 , close pingcap/tidb#35911
2022-07-07 00:49:02 +08:00
c76d686e67
*: add telemetry support for multi-schema change ( #35977 )
...
ref pingcap/tidb#14766
2022-07-06 16:27:03 +08:00
ec9f201294
topsql: compress plan instead of dropping it ( #35973 )
...
ref pingcap/tidb#35964
2022-07-06 16:03:02 +08:00
55aea2787d
*: use pdqsort to improve sort performance ( #34404 )
...
close pingcap/tidb#34250
2022-07-06 13:41:02 +08:00
0f7faa67d8
ddl: refine GetDDLInfo function ( #35969 )
2022-07-06 13:19:02 +08:00
2df6be5282
*: Make the code cleaner in session.ExecutePreparedStmt ( #35943 )
...
close pingcap/tidb#35925
2022-07-06 12:51:02 +08:00
637d00c05a
ddl: refine history job code ( #35967 )
2022-07-06 11:43:02 +08:00
cdde0398fe
sessionctx,kv,planner: add system variable for fine_grained_shuffle ( #35256 )
...
close pingcap/tidb#35342
2022-07-06 10:27:02 +08:00
114c922bc8
*: enable gosec ( #35873 )
...
ref pingcap/tidb#35345
2022-07-05 19:39:01 +08:00