fbc38f8b7f
planner: correctly handle expression.ScalarFunction in the buildSemiJoinForSetOperator ( #40390 )
...
close pingcap/tidb#40279
2023-01-12 19:07:52 +08:00
b8490bc9ac
domain: let plan replayer dump support recording stats mem status ( #40334 )
2023-01-06 15:30:21 +08:00
5327d07afc
planner: refactor plan-cache UseCache flag ( #40256 )
...
ref pingcap/tidb#36598
2023-01-03 17:30:20 +08:00
25a247935b
session: make plan replayer capture support prepared stmt ( #40167 )
...
close pingcap/tidb#40161
2023-01-03 11:32:19 +08:00
fdf335e3e5
*: make auto-analyze killable by global memory limit ( #39978 )
...
ref pingcap/tidb#39971 , close pingcap/tidb#39994
2022-12-20 21:56:55 +08:00
47f54603fa
executor: close recordset again ( #40010 )
2022-12-19 11:40:54 +08:00
3aba336048
domain: Support plan replayer continus capture ( #39926 )
2022-12-15 16:34:52 +08:00
4b3a4424e1
domain: support dump sql meta in plan replayer ( #39863 )
...
close pingcap/tidb#39883
2022-12-13 23:22:51 +08:00
3f3e102ea5
executor: make analyze killable by oom action ( #39539 )
...
close https://github.com/pingcap/tidb/issues/39559
2022-12-02 04:17:14 +08:00
19dae1fa73
*: separate auto_increment ID allocator from _tidb_rowid allocator when AUTO_ID_CACHE=1 ( #39041 )
...
close pingcap/tidb#982
2022-11-29 20:20:00 +08:00
15b523cb07
*: add a memdb memory tracker ( #39372 )
...
ref pingcap/tidb#35203
2022-11-25 19:03:59 +08:00
9c48480180
parser, executor: implement plan replayer capture statement ( #39181 )
...
ref pingcap/tidb#38779
2022-11-17 23:09:56 +08:00
4cfc25ae37
executor: make naaj correct ( #39160 )
...
ref pingcap/tidb#39061
2022-11-17 17:49:56 +08:00
b117a2eac8
ddl,executor: enhance test for auto_increment with AUTO_ID_CACHE=1 ( #38808 )
2022-11-16 17:11:56 +08:00
80c8fea9ec
planner: update some UTs from cost model1 to model2 ( #39085 )
...
ref pingcap/tidb#35240
2022-11-11 17:07:53 +08:00
066e9c81d7
domain: support plan_replayer_status system table ( #38957 )
...
close pingcap/tidb#38779
2022-11-10 12:05:52 +08:00
114d8c1195
*: enable global memory control by default ( #38899 )
2022-11-04 21:36:01 +08:00
fb8979697e
planner: update some UTs to use cost model2 ( #38875 )
...
ref pingcap/tidb#35240
2022-11-04 11:58:00 +08:00
72407d91d0
util: set checkpoint during Sort for SortedRowContainer ( #38865 )
2022-11-04 10:35:22 +08:00
c799b0f165
*: disable global memory control by default ( #38859 )
2022-11-03 19:32:01 +08:00
aafdf0e341
util, executor: remove OOMAction after a query finishing ( #38834 )
...
close pingcap/tidb#38847
2022-11-03 14:56:01 +08:00
ef95612e84
*: extend the semantic of mem-quota-query to mem-quota-session ( #38423 )
...
close pingcap/tidb#38429
2022-11-02 10:45:59 +08:00
9743a9a2d2
txn: add table name in dup entry error message ( #38243 )
...
Signed-off-by: ekexium <eke@fastmail.com >
2022-10-19 14:14:55 +08:00
bd014d67e0
*: add context for preprocess ( #38360 )
...
close pingcap/tidb#38359
2022-10-18 17:27:53 +08:00
a840354426
*: close resultSet ( #38435 )
2022-10-13 10:47:50 +08:00
c033b874b0
executor: let Compile catch PanicMemoryExceed ( #38375 )
...
close pingcap/tidb#38322
2022-10-11 14:31:50 +08:00
ec6f60e77d
executor: ignore spill action when trigger global memory kill ( #38198 )
...
ref pingcap/tidb#37816
2022-09-27 23:17:44 +08:00
4e4169bcc5
*: support global memory control for tidb ( #37794 )
...
ref pingcap/tidb#37816
2022-09-26 12:01:43 +08:00
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