1eeedacc60
*: remove goleak's ignoring opencensus top function ( #37908 )
2022-09-19 12:29:00 +08:00
ff873bbaf9
server: change the compatibility of tidb_sm3_password ( #37909 )
...
ref pingcap/tidb#36192
2022-09-19 11:39:00 +08:00
84b0d9784f
planner: fix YCSB read-heavy regression caused by prep/exec statements ( #37857 )
...
close pingcap/tidb#37829
2022-09-19 11:23:00 +08:00
c4638b70fd
*: support metadata lock ( #37393 )
...
ref pingcap/tidb#37275
2022-09-18 20:57:00 +08:00
c19dc460c0
executor: support plan replayer multi sqls ( #37867 )
...
close pingcap/tidb#37798
2022-09-16 13:40:59 +08:00
5209ac2fa1
sessionctx: support session var tidb_last_plan_replayer_token ( #37851 )
...
ref pingcap/tidb#37798
2022-09-15 18:15:00 +08:00
1d482db4dd
*: Support for tidb_sm3_password authentication ( #36193 )
...
close pingcap/tidb#36192
2022-09-08 12:00:57 +08:00
c48a5ec5b1
test: correct TestAllHistory ( #37656 )
...
ref pingcap/tidb#35983
2022-09-07 12:04:56 +08:00
58822f8859
planner: get plan from the general plan cache before optimization ( #37634 )
2022-09-06 16:58:39 +08:00
170dafc7e1
types: merge json and types pkg ( #37578 )
...
close pingcap/tidb#37577 , close pingcap/tidb#37628
2022-09-05 19:42:55 +08:00
6e582640d7
*: upgrade glangci-linter ( #37413 )
2022-09-01 12:14:24 +08:00
68c5d505d7
executor: distinguish query types of prepared stmt ( #37505 )
...
close pingcap/tidb#37503
2022-08-31 16:58:23 +08:00
7bdb7b5705
planner: refactor some code path of execution-stmt ( #37455 )
...
ref pingcap/tidb#36598
2022-08-31 10:48:23 +08:00
2858bc1571
*: refine mock session manager ( #37400 )
2022-08-26 15:06:21 +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
ef738eaba4
planner: introduce the Parameterizer interface for general plan cache ( #37170 )
...
ref pingcap/tidb#36598
2022-08-18 11:04:53 +08:00
5dc3e58485
planner: introduce the general plan cache ( #37150 )
...
ref pingcap/tidb#36598
2022-08-16 20:24:51 +08:00
25b63dfb59
planner: introduce new functions for the general statement in session interface ( #37024 )
...
ref pingcap/tidb#36598
2022-08-11 16:18:48 +08:00
5c00246838
server: Change proxyprotocol to lazy mode ( #36301 )
...
ref pingcap/tidb#36312
2022-08-11 15:16:48 +08:00
d6d0ce7b10
*: gofmt code for adapting go 1.19 ( #36832 )
...
ref pingcap/tidb#36879
2022-08-11 12:50:49 +08:00
4b442a321e
server: revise scheme code ( #37021 )
2022-08-11 11:26:48 +08:00
ba8e7cc78e
planner: remove keyword prepared in plan cache backend ( #37023 )
...
ref pingcap/tidb#36598
2022-08-10 17:50:48 +08:00
b41d751e75
server: fully support CLIENT_DEPRECATE_EOF ( #36971 )
...
ref pingcap/tidb#32118
2022-08-10 11:34:48 +08:00
3a95e52b90
server: Fix EOF handling in prepared statements ( #36942 )
...
close pingcap/tidb#36937
2022-08-08 16:22:47 +08:00
244b353a11
planner: support session level for the variable tidb_enable_prepared_plan_cache ( #36923 )
...
ref pingcap/tidb#36598
2022-08-08 11:18:47 +08:00
c7b5ca0f71
server: Remove old handshake support ( #27768 )
...
close pingcap/tidb#36922
2022-08-06 08:50:06 +08:00
e9928bcb72
*: enable bodyclose ( #36927 )
...
close pingcap/tidb#35345
2022-08-05 18:26:06 +08:00
2e16291b2d
server: support deprecation of EOF packets ( #34753 )
...
close pingcap/tidb#32118
2022-08-05 15:34:07 +08:00
111d932035
*: upgrade golangci-linter ( #36908 )
2022-08-05 15:04:06 +08:00
0a8611ddfe
sysvar: add parsing phase for setting 'init_connect' ( #36865 )
...
close pingcap/tidb#35324
2022-08-05 12:42:06 +08:00
95e4df86d7
server: add a http interface to change labels ( #36845 )
...
ref pingcap/tidb#35926
2022-08-04 18:08:06 +08:00
a6475a1397
server: Support flag 128 in execution of prepared statements ( #36732 )
...
close pingcap/tidb#36731
2022-08-04 17:48:06 +08:00
70f35617f6
*: optimize DDL history http API, reduce memory ( #36859 )
...
close pingcap/tidb#35838
2022-08-04 11:56:05 +08:00
5ef18981cc
Revert "planner: refactor the IsolationReadEngines variable for plan cache" ( #36873 )
2022-08-04 10:30:06 +08:00
3847d9e56f
planner: refactor the IsolationReadEngines variable for plan cache ( #36770 )
...
ref pingcap/tidb#36598
2022-08-03 19:44:05 +08:00
b364cecdcc
planner: use the unified parameters for plan cache ( #36781 )
2022-08-03 18:35:49 +08:00
c263301954
server: support forward request for plan replayer with tls enabled ( #36806 )
...
ref pingcap/tidb#29213
2022-08-03 16:16:06 +08:00
c8cb3c96c8
planner: update plan cache key and value ( #36779 )
...
ref pingcap/tidb#36598
2022-08-02 15:26:05 +08:00
0b1d3e0da3
*: cleanup sysvar API usage ( #36640 )
...
close pingcap/tidb#36639
2022-08-02 07:54:04 +08:00
9a16a8dd19
*: replace defer clean with t.Cleanup ( #36722 )
...
close pingcap/tidb#36721
2022-08-01 17:34:05 +08:00
158ba1a1d9
*: enable part revive for all code ( #36703 )
2022-08-01 14:02:06 +08:00
6baea73277
*: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) ( #36660 )
2022-07-28 19:23:11 +08:00
9d0f5f72d3
*: enable pessimistic transaction on unistore ( #36578 )
2022-07-26 21:07:10 +08:00
eb85efba33
*: add affected rows metrics ( #36436 )
...
close pingcap/tidb#36435
2022-07-25 17:33:10 +08:00
4c74ab4cf0
test: stabilize TestTopSQLCPUProfile ( #36468 )
...
close pingcap/tidb#36419
2022-07-22 18:29:08 +08:00
23f25af211
executor,metrics: add a metric for observing execution phases ( #35906 )
...
ref pingcap/tidb#34106
2022-07-21 21:31: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
911e7cc360
*: enable revive ( #35970 )
...
ref pingcap/tidb#35345
2022-07-15 16:03:06 +08:00
9a2ed52119
server, sessionctx: support token-based authentication ( #36152 )
...
close pingcap/tidb#35913
2022-07-14 18:29:06 +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