858b8a38ea
*: add foreign key constraint check when execute insert statement ( #37466 )
...
close pingcap/tidb#37465
2022-09-24 00:41:43 +08:00
c4f6de159b
planner: PhysicalPlan memory trace 7 ( #38030 )
...
ref pingcap/tidb#37632
2022-09-23 15:29:43 +08:00
59b4a8e910
table partition: exchange partition telemetry ( #37875 )
...
close pingcap/tidb#37874
2022-09-22 01:25:02 +08:00
0823fdb6b3
planner, executor: implement the null-aware antiSemiJoin and null-aware antiLeftOuterSemiJoin (hash join with inner build) ( #37512 )
...
close pingcap/tidb#37525
2022-09-20 00:05:03 +08:00
06a1659521
*: Telemetry for multi-column RANGE COLUMNS partitioning ( #37828 )
...
ref pingcap/tidb#36636
2022-09-17 00:16:59 +08:00
c19dc460c0
executor: support plan replayer multi sqls ( #37867 )
...
close pingcap/tidb#37798
2022-09-16 13:40:59 +08:00
c5c5ceeaab
planner: PhysicalPlan memory trace 4 ( #37736 )
...
ref pingcap/tidb#37632
2022-09-16 11:40:58 +08:00
f0d8d47df5
telemetry: interval partitioning ( #36486 )
...
close pingcap/tidb#36525
2022-09-14 18:12:58 +08:00
ea2ddfee03
executor: let PlanReplayerExec support multi sqls ( #37799 )
...
ref pingcap/tidb#37798
2022-09-14 16:17:00 +08:00
7eb7ca902a
planner: fallback to static plan for partition table if having no global stats in dynamic prune mode ( #37573 )
...
ref pingcap/tidb#37535
2022-09-08 09:20:57 +08:00
62480cf19b
*: add telemetry support for account lock/unlock ( #37344 )
...
close pingcap/tidb#37324
2022-09-07 18:40:56 +08:00
36b6710c64
executor: disable closest replica read if cluster is not balanced ( #36824 )
...
ref pingcap/tidb#35926
2022-09-07 11:28:56 +08:00
0d8af9436a
executor: fix flaky TestDefaultValForAnalyze ( #37576 )
...
close pingcap/tidb#36341
2022-09-02 18:16:25 +08:00
5a39851554
executor: fix missing index names in stmt summary/slow log for [Batch]PointGet ( #37073 )
...
close pingcap/tidb#37066
2022-08-12 18:42:49 +08:00
d6d0ce7b10
*: gofmt code for adapting go 1.19 ( #36832 )
...
ref pingcap/tidb#36879
2022-08-11 12:50:49 +08:00
7d744b18e2
planner: remove execID in ExecuteStmt ( #36967 )
...
ref pingcap/tidb#36598
2022-08-09 14:10:47 +08:00
d76074623c
planner: unify the parameters name in plan cache ( #36899 )
...
ref pingcap/tidb#36598
2022-08-05 17:20:06 +08:00
158ba1a1d9
*: enable part revive for all code ( #36703 )
2022-08-01 14:02:06 +08:00
c4c066554b
executor: add syntax 'ADMIN SHOW DDL JOB QUERIES LIMIT m OFFSET n' to retrieve DDL commands within a certain range ( #36480 )
...
close pingcap/tidb#36198
2022-07-25 13:07:10 +08:00
8bc002e77c
table partition: add telemetry for partition table ( #36204 )
...
close pingcap/tidb#34949
2022-07-22 11:53: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
a6b3f3d454
compact: Add syntax for COMPACT command without specifying the replica ( #36368 )
...
ref pingcap/tidb#34749
2022-07-20 16:53:09 +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
5a01b63475
executor: fix dead loop for indexMergeJoin in paging. ( #35918 )
...
close pingcap/tidb#35831
2022-07-11 11:11:05 +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
c76d686e67
*: add telemetry support for multi-schema change ( #35977 )
...
ref pingcap/tidb#14766
2022-07-06 16:27:03 +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
441c9cde30
txn: rename snapshot related methods in txnManager. ( #35912 )
...
close pingcap/tidb#35915
2022-07-05 12:37:01 +08:00
157c178f27
*: seperate TxnScope and ReplicaReadScope ( #35877 )
...
close pingcap/tidb#31772
2022-07-05 11:33:02 +08:00
65e0b8e541
client: KV requests with source label ( #34833 )
...
close pingcap/tidb#33963
2022-07-01 19:46:39 +08:00
16e5815f18
txn: txnManager providers GetReadSnapshot and GetForUpdateSnapshot. ( #35788 )
...
close pingcap/tidb#35810
2022-07-01 18:12:40 +08:00
488712661c
*: Remove some useless staleness code ( #35849 )
...
close pingcap/tidb#35848
2022-06-30 17:10:38 +08:00
f0d5f6e9cd
txn: remove legacy.SimpleTxnContextProvider ( #35667 )
...
close pingcap/tidb#35666
2022-06-29 13:52:39 +08:00
d99b358225
*: only add default value for final aggregation to fix the aggregate push down (partition) union case ( #35443 )
...
close pingcap/tidb#35295
2022-06-28 12:08:39 +08:00
0998cba23d
txn: refactor ts acquisition within build and execute phases ( #35376 )
...
close pingcap/tidb#35377
2022-06-27 11:58:38 +08:00
df9b54bcb3
txn, session: Add (cluster_)trx_summary table ( #28835 )
...
ref pingcap/tidb#34457
2022-06-23 11:16:36 +08:00
d4dc6b54c6
*: enable staticcheck and prealloc on nogo ( #35486 )
...
ref pingcap/tidb#35345
2022-06-22 22:00:37 +08:00
fc833a30b3
planner, executor: add some comments about how we decide sample rate ( #34140 )
...
ref pingcap/tidb#24182
2022-06-22 18:34:37 +08:00
2910dee858
executor: fix wrong runtime stats for ShuffleReceiver ( #35293 )
...
close pingcap/tidb#34987
2022-06-22 13:52:37 +08:00
45a9a7e5ab
txn: fix bug that some times lock ts and read ts are not the same ( #35470 )
...
close pingcap/tidb#35459
2022-06-17 18:20:36 +08:00
ad1cb783c4
*: support paging protocol on unistore ( #35244 )
...
ref pingcap/tidb#35242 , close pingcap/tidb#35243
2022-06-14 21:46:33 +08:00
b0245cda58
*: clean up coprocessor streaming code ( #35277 )
...
close pingcap/tidb#35276
2022-06-10 10:50:31 +08:00
22e9f4dc9e
txn: Provide PessimisticRCTxnContextProvider for RC isolation ( #34702 )
...
close pingcap/tidb#34746
2022-06-02 15:36:28 +08:00
c8468a7010
distsql,executor: using paging protocol for all coprocessor requests ( #35068 )
...
close pingcap/tidb#35067
2022-06-01 11:06:27 +08:00
d45a9c8af8
executor, parser, sessionctx: push down InRestrictedSQL flag to proto buffer ( #34861 )
...
close pingcap/tidb#34860
2022-05-26 14:06:47 +08:00
79938e695c
dml: support for show count(*) warnings | errors ( #34721 )
...
close pingcap/tidb#25068
2022-05-23 15:50:46 +08:00
81a852077a
executor, parser: indicate analyze is auto or not in proto buffer ( #34608 )
...
close pingcap/tidb#34607
2022-05-20 17:42:38 +08:00
01fb9355d6
executor: add ALTER TABLE COMPACT support ( #34741 )
...
ref pingcap/tidb#34749
2022-05-19 00:44:38 +08:00
0ac659b4fb
planner: fix the issue that the optimizer caches wrong TableDual plans under binary protocol ( #34709 )
...
close pingcap/tidb#34678 , close pingcap/tidb#34690
2022-05-17 16:24:39 +08:00