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
7458c3ec2e
sessionctx: support signing and checking tokens ( #36030 )
...
close pingcap/tidb#36029
2022-07-12 20:33:05 +08:00
756a817014
*: fix a data race on TestConnExecutionTimeout ( #35923 )
...
close pingcap/tidb#35922
2022-07-11 13:35:05 +08:00
114c922bc8
*: enable gosec ( #35873 )
...
ref pingcap/tidb#35345
2022-07-05 19:39:01 +08:00
e50b9430fc
*: enable gci ( #35823 )
...
ref pingcap/tidb#35345
2022-07-04 14:53:02 +08:00
c836501f89
server, session: report an error when the session states cannot be fetched ( #35892 )
...
close pingcap/tidb#35866
2022-07-04 12:31:00 +08:00
65e0b8e541
client: KV requests with source label ( #34833 )
...
close pingcap/tidb#33963
2022-07-01 19:46:39 +08:00
bff03b3301
server: refactor TestConnExecutionTimeout ( #35865 )
...
close pingcap/tidb#35868
2022-07-01 00:18:39 +08:00
16df1942d0
*: add timeout for test cases ( #35844 )
2022-06-30 20:18:38 +08:00
4fc86936ff
sessionctx: support encoding and decoding prepared statements ( #35808 )
...
close pingcap/tidb#35689
2022-06-30 11:56:38 +08:00
41c0ab4879
*: support canceling DDL statements with KILL ( #35803 )
...
close pingcap/tidb#24144
2022-06-29 13:12:39 +08:00
e2b55640c1
config, sysvar: map max-server-connections to max_connections ( #35453 )
...
ref pingcap/tidb#34960
2022-06-23 15:12:37 +08:00
e99d82a9b4
*: fix issue of cast string as time is incompatible with MySQL ( #35455 )
...
close pingcap/tidb#34539
2022-06-23 13:50:37 +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
d25adf057d
load_data: fix the bug that column list does not work in load data. ( #35222 )
...
close pingcap/tidb#35198
2022-06-16 21:36:36 +08:00
d3e9114f44
*: enable more flaky test, enable more shard_count and update bazel config ( #35300 )
...
ref pingcap/tidb#35247
2022-06-13 17:52:32 +08:00
58ceefc5b0
txn: skip the transaction start_ts used by analyze calculating the gc ( #35210 )
...
close pingcap/tidb#35062
2022-06-10 12:16:30 +08:00
2b4a4c6d7a
*: support bazel ( #33691 )
...
close pingcap/tidb#34083
2022-06-07 15:22:30 +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
7f023bd61b
ddl: wrap some functions for ddl job ( #34920 )
...
close pingcap/tidb#34919
2022-05-29 15:38:26 +08:00
ee800f4e5e
planner: check infoSchema when builing cacheKey ( #34957 )
...
close pingcap/tidb#34974
2022-05-27 19:42:48 +08:00
43f83c0799
*: kill auto analyze when it runs too long ( #34950 )
...
close pingcap/tidb#34952
2022-05-27 13:36:47 +08:00
854c68d992
server: fix connection close on network timeout/read error ( #34757 )
...
close pingcap/tidb#34722
2022-05-19 14:58:39 +08:00
a9614850f9
*: move config file option oom-action to sysvar ( #34644 )
...
ref pingcap/tidb#33769
2022-05-19 05:16:38 +08:00
d2c4339c37
server: optimize BCE on the packetio.writePacket ( #34758 )
...
ref pingcap/tidb#34669
2022-05-18 21:22:39 +08:00
d2ada35afa
*: move config file option require_secure_transport to sysvar ( #34261 )
...
ref pingcap/tidb#33769
2022-05-17 22:02:37 +08:00
810f8ae12e
*: remove pingcap/check dependency ( #34734 )
...
close pingcap/tidb#28328
2022-05-17 21:38:37 +08:00
856e82ad6a
txn: add methods to handle error for TxnManager ( #34489 )
...
close pingcap/tidb#34533
2022-05-13 16:00:37 +08:00
218247e80e
*: improve stack message in the panic log ( #34564 )
...
close pingcap/tidb#34356
2022-05-11 16:34:34 +08:00
145058cd75
session: migrate test-infra to testify for parts of session_test ( #34560 )
...
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io >
2022-05-11 16:16:13 +08:00
73f3435346
ddl: move some admin function to ddl ( #34527 )
...
close pingcap/tidb#34526
2022-05-10 18:14:34 +08:00
c16291392a
*: replace types.NewFieldTypeBuilder() API with NewFieldTypeBuilderP() to avoid misuse ( #34494 )
...
close pingcap/tidb#34490
2022-05-09 22:00:33 +08:00
2258bc54c4
txn: Add EnterNewTxn and OnStmtStart methods to TxnManager ( #34263 )
...
close pingcap/tidb#34390
2022-05-07 21:02:32 +08:00
f6ce33761b
*: fix load statement can not handle the upper case user variable ( #34423 )
...
close pingcap/tidb#34420
2022-05-07 13:02:31 +08:00
1f9d34aeef
*: Revert #33519 for performance fallback and fix the #33509 in another way ( #34425 )
...
close pingcap/tidb#33509
2022-05-06 21:20:56 +08:00
5b6ffa70cc
domain,session: Store and delete internal session in the session pool ( #34168 )
...
close pingcap/tidb#34154
2022-04-29 13:54:52 +08:00
0d5ac6f3cb
sysvar, config: mapping config settings to system variables. ( #33279 )
...
ref pingcap/tidb#32887
2022-04-29 13:20:52 +08:00