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
64c30c0a24
tests/realtikvtest: add tests for adding index ( #37320 )
...
ref pingcap/tidb#35983
2022-08-24 00:04:20 +08:00
fb1b8509eb
*: fix check-2 to bazel ( #37055 )
2022-08-11 19:04:50 +08:00
fa73ba8529
makefile: add bazel realtikvtest ( #37042 )
2022-08-11 14:44:48 +08:00
d6d0ce7b10
*: gofmt code for adapting go 1.19 ( #36832 )
...
ref pingcap/tidb#36879
2022-08-11 12:50:49 +08:00
45f82afa20
executor: revert #36498 to avoid perf regression ( #37005 )
...
ref pingcap/tidb#36438
2022-08-10 10:42:48 +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
0a8611ddfe
sysvar: add parsing phase for setting 'init_connect' ( #36865 )
...
close pingcap/tidb#35324
2022-08-05 12:42:06 +08:00
b364cecdcc
planner: use the unified parameters for plan cache ( #36781 )
2022-08-03 18:35:49 +08:00
fc18381b77
tests: don't clean the whole storage when running a new tikv test ( #36803 )
2022-08-03 17:02:06 +08:00
5b4a82dbf4
*: upgrade bazel timeout ( #36776 )
2022-08-02 11:10:05 +08:00
9a16a8dd19
*: replace defer clean with t.Cleanup ( #36722 )
...
close pingcap/tidb#36721
2022-08-01 17:34:05 +08:00
ae4db2a319
tests: fix unstable graceshutdown test ( #36670 )
...
ref pingcap/tidb#36669
2022-07-28 19:09:11 +08:00
9d0f5f72d3
*: enable pessimistic transaction on unistore ( #36578 )
2022-07-26 21:07:10 +08:00
c80026e61f
executor: also collect unchanged unique keys for lock ( #36498 )
...
close pingcap/tidb#36438
2022-07-25 21:43:11 +08:00
893a114abc
parser: fix DDL job.Clone() ( #36523 )
...
close pingcap/tidb#36522
2022-07-25 18:31:10 +08:00
63145482b5
session_test: move unnecessary tests out of realtikvtest ( #36482 )
2022-07-25 12:39:10 +08:00
bf743a6ca0
*: enable flaky test for all test ( #36385 )
...
close pingcap/tidb#36404
2022-07-22 15:35: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
fa00fc5cd5
*: set fine grain timeout and update bazel config ( #36220 )
2022-07-15 11:11:05 +08:00
be50ebc68e
test: add paging explain analyze and total_process_keys test ( #36179 )
...
close pingcap/tidb#36178
2022-07-14 18:57:06 +08:00
f581ec3a45
test: remove meaningless test and update bazel ( #36136 )
2022-07-13 16:41:05 +08:00
ffc17f745b
txn: move some methods in session_txn to internal pacakge ( #36034 )
...
close pingcap/tidb#36033
2022-07-13 13:13:05 +08:00
16e5815f18
txn: txnManager providers GetReadSnapshot and GetForUpdateSnapshot. ( #35788 )
...
close pingcap/tidb#35810
2022-07-01 18:12:40 +08:00
556cf75ebd
metric: Add transaction state's metric ( #34845 )
...
ref pingcap/tidb#34456
2022-07-01 16:56:40 +08:00
16df1942d0
*: add timeout for test cases ( #35844 )
2022-06-30 20:18:38 +08:00
d26ee00559
executor: fix a nil point when @@tidb_enable_collect_execution_info is off and cop cache is on ( #35839 )
...
close pingcap/tidb#35829
2022-06-30 16:02: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
0d9e02b638
*: Add testfork.RunTest to run multiple tests in one function ( #35746 )
...
close pingcap/tidb#35747
2022-06-28 17:14:39 +08:00
f53e3c72cc
ddl: for schema-level DDL method parameter is now XXXStmt ( #35722 )
...
ref pingcap/tidb#35665 , close pingcap/tidb#35734
2022-06-27 10:54:38 +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
494759d4aa
*: remove useless gomod ( #34107 )
...
ref pingcap/tidb#31716
2022-06-22 15:56:36 +08:00
2e1e3f1269
*: Introduce OptimisticTxnContextProvider for optimistic txn ( #35131 )
...
close pingcap/tidb#35130
2022-06-21 00:04:37 +08:00
4fb4164702
*: enable test_verbose_timeout_warnings ( #35321 )
...
ref pingcap/tidb#35247
2022-06-15 13:08:33 +08:00
ad1cb783c4
*: support paging protocol on unistore ( #35244 )
...
ref pingcap/tidb#35242 , close pingcap/tidb#35243
2022-06-14 21:46:33 +08:00
738f681d61
*: Introduce PessimisticRRTxnContextProvider for pessimistic repeatable read txn ( #35158 )
...
close pingcap/tidb#35129
2022-06-13 11:44:34 +08:00
2b4a4c6d7a
*: support bazel ( #33691 )
...
close pingcap/tidb#34083
2022-06-07 15:22:30 +08:00
ae8da6f0bd
*: make Row errors be correctly checked ( #35188 )
...
close pingcap/tidb#35050
2022-06-07 13:26:30 +08:00
22e9f4dc9e
txn: Provide PessimisticRCTxnContextProvider for RC isolation ( #34702 )
...
close pingcap/tidb#34746
2022-06-02 15:36:28 +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
0cbccb74f3
*: move config file options prepared-plan-cache.* to sysvars ( #34790 )
...
close pingcap/tidb#30168 , ref pingcap/tidb#33769
2022-05-19 16:18: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
d834649c89
session: cleanup check_dev_2 scaffolding ( #34768 )
...
ref pingcap/tidb#26864
2022-05-18 14:14:38 +08:00
810f8ae12e
*: remove pingcap/check dependency ( #34734 )
...
close pingcap/tidb#28328
2022-05-17 21:38:37 +08:00
a3193a88c1
*: change global kill config and add telemetry ( #34733 )
...
ref pingcap/tidb#8854
2022-05-17 21:20:38 +08:00
dc8dfed50a
session: migrate test-infra to testify for part of session_test ( #34714 )
...
ref pingcap/tidb#28328
2022-05-17 15:38:38 +08:00
139569bbf4
session: migrate test-infra to testify for part of session_test ( #34680 )
...
ref pingcap/tidb#28328
2022-05-16 18:48:37 +08:00
f351f44bc1
session: migrate test-infra to testify for testSessionSerialSuite ( #34593 )
...
ref pingcap/tidb#28328
2022-05-16 14:08:37 +08:00
333c623124
session: migrate test-infra to testify for temporary table tests in session_test ( #34664 )
...
ref pingcap/tidb#28328
2022-05-15 22:56:36 +08:00