aef905cb16
executor: convert json numeric value to float64 in hash ( #38065 )
...
close pingcap/tidb#38049
2022-09-22 11:39:02 +08:00
178f3002c5
*: add privilege check for lock tables ( #38037 )
...
close pingcap/tidb#37978
2022-09-22 09:43:02 +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
ea2ddfee03
executor: let PlanReplayerExec support multi sqls ( #37799 )
...
ref pingcap/tidb#37798
2022-09-14 16:17:00 +08:00
70684d39de
*: enable mock session manager and schemaLease for all unit tests ( #37623 )
2022-09-06 14:04:55 +08:00
c824784c9a
parser: support do some adminStmt in read-only mode ( #37635 )
...
close pingcap/tidb#37631
2022-09-06 13:48:55 +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
eb8fc860ed
executor: let plan replayer record table tiflash replica ( #37336 )
...
close pingcap/tidb#37255
2022-08-24 22:10:21 +08:00
45588a1f8e
executor: let plan replayer support view ( #37224 )
...
close pingcap/tidb#37163
2022-08-23 19:44:20 +08:00
ba8e7cc78e
planner: remove keyword prepared in plan cache backend ( #37023 )
...
ref pingcap/tidb#36598
2022-08-10 17:50:48 +08:00
b364cecdcc
planner: use the unified parameters for plan cache ( #36781 )
2022-08-03 18:35:49 +08:00
9a16a8dd19
*: replace defer clean with t.Cleanup ( #36722 )
...
close pingcap/tidb#36721
2022-08-01 17:34:05 +08:00
93a31f0f1c
ddl: fix inaccurate row_count for admin show ddl jobs ( #36716 )
...
close pingcap/tidb#25968
2022-08-01 16:40:05 +08:00
158ba1a1d9
*: enable part revive for all code ( #36703 )
2022-08-01 14:02:06 +08:00
d021e363a4
executor: let plan replayer support cte ( #36714 )
...
close pingcap/tidb#36712
2022-08-01 11:24:05 +08:00
9d0f5f72d3
*: enable pessimistic transaction on unistore ( #36578 )
2022-07-26 21:07:10 +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
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
f84554bd07
expression: fix binary str numeric result type ( #36258 )
...
close pingcap/tidb#27698
2022-07-19 16:43:07 +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
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
0f7faa67d8
ddl: refine GetDDLInfo function ( #35969 )
2022-07-06 13:19:02 +08:00
637d00c05a
ddl: refine history job code ( #35967 )
2022-07-06 11:43:02 +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
5b305c34f8
txn: manage the initialization of RCCheckTS by transaction context provider ( #35554 )
...
close pingcap/tidb#35497
2022-06-29 16:14:39 +08:00
4fc9551dd1
sessionctx, types, executor: support encoding and decoding user-defined variables ( #35343 )
...
close pingcap/tidb#35288
2022-06-15 21:02:34 +08:00
5d4745e9d4
parser, executor: support show/set session_states ( #35263 )
...
close pingcap/tidb#35259
2022-06-10 15:24:31 +08:00
b0245cda58
*: clean up coprocessor streaming code ( #35277 )
...
close pingcap/tidb#35276
2022-06-10 10:50:31 +08:00
933d5523cb
parser: fix the Incompatible parser behavior for HAVING clause #34642 ( #34751 )
...
close pingcap/tidb#34642
2022-05-30 22:52:26 +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
dbce66a055
test: fix integration-ddl-test ( #35014 )
...
close pingcap/tidb#35020
2022-05-30 16: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
a9614850f9
*: move config file option oom-action to sysvar ( #34644 )
...
ref pingcap/tidb#33769
2022-05-19 05:16:38 +08:00
bbd7541322
*: refine 'tidb_snapshot' behavior ( #34573 )
...
close pingcap/tidb#34529
2022-05-11 20:54:34 +08:00
73f3435346
ddl: move some admin function to ddl ( #34527 )
...
close pingcap/tidb#34526
2022-05-10 18:14:34 +08:00
2258bc54c4
txn: Add EnterNewTxn and OnStmtStart methods to TxnManager ( #34263 )
...
close pingcap/tidb#34390
2022-05-07 21:02:32 +08:00
1bf64c60f4
*: Refactor FieldType structure ( #33569 )
...
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
fb342ff861
topsql: fix issue of topsql failed catch the running SQL when topsql is enabled in execution ( #33861 )
...
close pingcap/tidb#33859
2022-04-26 13:16:51 +08:00
d23a81488a
*: Move stale read context to TxnManager ( #33812 )
...
close pingcap/tidb#31954 , close pingcap/tidb#33014 , close pingcap/tidb#33832
2022-04-25 16:52:51 +08:00
02de667042
testkit: add MockSessionManager ( #34124 )
...
ref pingcap/tidb#31716
2022-04-21 12:14:04 +08:00
58e2a552d3
executor: migrate test-infra to testify for executor_test.go ( #34062 )
...
close pingcap/tidb#28577 , close pingcap/tidb#33425 , close pingcap/tidb#33432
2022-04-18 14:46:03 +08:00
1fcc407b3b
executor: migrate test-infra to testify for executor_test.go testSuiteP2 ( #34049 )
...
close pingcap/tidb#33427
2022-04-18 13:10:02 +08:00
2b00d3e6e0
executor: migrate test-infra to testify for testSuite2 ( #34046 )
...
close pingcap/tidb#33431
2022-04-18 11:50:02 +08:00
345b1a886f
executor: migrate test-infra to testify for part of executor_test.go ( #34040 )
...
ref pingcap/tidb#28577
2022-04-17 18:08:36 +08:00
b5de819d00
util: fix memory.reArrangeFallback cpu usage ( #30414 )
...
close pingcap/tidb#30353
2022-04-15 12:48:35 +08:00
4dbed02d74
executor: fix unstable test of TestTimestampDefaultValueTimeZone ( #33926 )
...
close pingcap/tidb#33923
2022-04-13 16:36:36 +08:00
192482da3a
executor: migrate test-infra to testify for testSerialSuite ( #33911 )
...
close pingcap/tidb#33441
2022-04-13 15:14:36 +08:00