494672cb51
admin: impl admin check index for mv index ( #40270 )
...
close pingcap/tidb#40272
2023-01-03 16:58:20 +08:00
f7de8beede
*: remove the support of the old ddl framework ( #39684 )
...
ref pingcap/tidb#39824
2022-12-30 18:30:18 +08:00
0f4bd73741
server: avoid reusing cached stmt ctx on cursor read ( #40023 )
...
close pingcap/tidb#39998
2022-12-22 11:00:55 +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
1e7c6ddbe6
SlowLog: Update Wait_TS field in slow log for every sql ( #39843 )
...
close pingcap/tidb#39713
2022-12-14 00:08:52 +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
3bb8e793d0
executor: add globalAnalyzeTracker back ( #39500 )
...
close https://github.com/pingcap/tidb/issues/39499
2022-12-02 02:47:37 +08:00
23543a4805
*: merge the runtime stats in time to avoid using too many memory ( #39394 )
...
close pingcap/tidb#39413
2022-11-29 21:00:00 +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
89522b1708
*: fix deprecated ( #39401 )
2022-11-28 09:46:00 +08:00
cf49466a1e
executor: move FillVirtualColumnValue to the table package ( #39342 )
2022-11-23 17:59:58 +08:00
48e17e2ecb
planner: revise sync load error msg ( #39198 )
2022-11-18 14:13:55 +08:00
f5171e334e
executor: fix admin show job panic when upgrade from v4.0 to v6.4 ( #39067 )
...
close pingcap/tidb#38980
2022-11-10 22:25:52 +08:00
ea26284ea3
*: avoid special cases DATA RACE ( #38918 )
...
close pingcap/tidb#38914
2022-11-08 20:13:50 +08:00
ad4d43219a
planner: support record table runtime stats during optimize ( #38876 )
...
ref pingcap/tidb#38779
2022-11-08 19:31:50 +08:00
f79e67f98b
executor: insert ignore return errAutoincReadFailed warning ( #38486 )
...
close pingcap/tidb#38483
2022-11-07 19:55:51 +08:00
114d8c1195
*: enable global memory control by default ( #38899 )
2022-11-04 21:36:01 +08:00
0b3e1e9be0
*: Chunkreuse try reuse chunk in operator ( #38607 )
...
close pingcap/tidb#38606
2022-11-04 11:28:00 +08:00
c799b0f165
*: disable global memory control by default ( #38859 )
2022-11-03 19:32: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
6d6e9c4b10
*: show backfill type in admin show ddl jobs ( #38733 )
...
ref pingcap/tidb#35983
2022-10-29 00:53:58 +08:00
dd65832136
*: add context for hook of getting/setting variables ( #38379 )
...
close pingcap/tidb#38378
2022-10-18 16:43:53 +08:00
e7b0eb53b1
config: fix data race raised by EnableCollectExecutionInfo ( #38409 )
...
close pingcap/tidb#38408
2022-10-12 17:17:51 +08:00
4e4169bcc5
*: support global memory control for tidb ( #37794 )
...
ref pingcap/tidb#37816
2022-09-26 12:01:43 +08:00
b0e073478f
execution: commit the transaction before responding explain analyze results to the client ( #38044 )
...
close pingcap/tidb#37373
2022-09-21 20:45:03 +08:00
ff1df75a6a
*: add more tests for metadata lock and fix data race ( #37930 )
...
close pingcap/tidb#37927
2022-09-20 12:05:01 +08:00
c4638b70fd
*: support metadata lock ( #37393 )
...
ref pingcap/tidb#37275
2022-09-18 20:57: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
55e86e0037
util: use channel.Clear to empty channel ( #37643 )
2022-09-06 19:28:55 +08:00
d435267600
statistics: track used stats status during query ( #37101 )
...
ref pingcap/tidb#36481
2022-08-25 12:14:21 +08:00
4cf7eeee64
planner: add warn log for sync stats ( #36956 )
2022-08-22 15:24:20 +08:00
d6d0ce7b10
*: gofmt code for adapting go 1.19 ( #36832 )
...
ref pingcap/tidb#36879
2022-08-11 12:50:49 +08:00
257c78764d
test: fix race for SetDDL by moving ddl inject earlier ( #36964 )
...
close pingcap/tidb#36940
2022-08-09 10:36:47 +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
c060208b2f
*: move config file option oom-use-tmp-storage to sysvar ( #36679 )
...
ref pingcap/tidb#33769
2022-08-02 16:58:05 +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
48e496afc2
executor: correct the column name shown in show next_row_id ( #36471 )
...
close pingcap/tidb#36470
2022-07-25 09:41: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
2f934d67a2
*: support show ddl jobs for sub-jobs ( #36168 )
...
ref pingcap/tidb#14766
2022-07-13 20:57:05 +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
82f0faf78a
executor: fix left join on partition table generate invalid lock key ( #35732 )
...
close pingcap/tidb#28073
2022-06-28 13:08:39 +08:00
31c92c67bc
sessionctx: support encoding and decoding statement context ( #35688 )
...
close pingcap/tidb#35664
2022-06-27 12:20: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
26df62fef2
test: improve some tests ( #35092 )
...
ref pingcap/tidb#32031
2022-06-01 18:50:28 +08:00
eb46685055
*: add methods to session.Context and refactor some code about ddl ( #34699 )
...
close pingcap/tidb#32031
2022-05-30 12:46:26 +08:00
7f023bd61b
ddl: wrap some functions for ddl job ( #34920 )
...
close pingcap/tidb#34919
2022-05-29 15:38:26 +08:00