Commit Graph

2494 Commits

Author SHA1 Message Date
11839ac39e ddl: unsupport flashback cluster cross alter table attributes (#40862)
close pingcap/tidb#40861
2023-01-30 18:21:55 +08:00
744de86c61 ddl: move update version function to a proper place (#40817)
ref pingcap/tidb#40217
2023-01-29 18:41:54 +08:00
f842cd9ffb store/copr: add a param "limit" to region cache's SplitRegionRanges (#40411)
close pingcap/tidb#38436
2023-01-29 16:05:54 +08:00
6676ca8160 ddl: split some tests into new package (#40758)
ref pingcap/tidb#40802
2023-01-29 14:29:54 +08:00
90c5a87637 ddl: remove useless code (#40756)
close pingcap/tidb#40755
2023-01-29 13:05:54 +08:00
Hu#
38a7c6220e mockstore: update pd/client and client-go to repair kvproto compatibility (#40597)
close pingcap/tidb#40598
2023-01-20 14:29:50 +08:00
280b773206 ddl: prevent dropping in-use resource group (#40716)
ref pingcap/tidb#38825
2023-01-19 18:53:49 +08:00
bbd1995ea3 ddl, lightning: support detecting duplicate keys in different batch (#40701)
close pingcap/tidb#40698
2023-01-19 14:29:49 +08:00
9db9c30892 telemetry: resource control telemetry (#40687)
ref pingcap/tidb#38825
2023-01-18 18:09:51 +08:00
95532bbfe3 ddl: fix the batch check for unique index (#40672)
ref pingcap/tidb#40464, close pingcap/tidb#40592
2023-01-18 16:45:51 +08:00
971deb6202 *: add a new I_S table and support show create for resource groups (#40665)
close pingcap/tidb#39781
2023-01-17 23:37:49 +08:00
zzm
4bb51e7f0c ddl: cancel create view job , when failed to drop old view (#40353)
close pingcap/tidb#40352
2023-01-17 19:11:49 +08:00
a2e1e9bfea ddl: Block change column on partitioned table if data needs change. (#40631)
close pingcap/tidb#40620
2023-01-17 16:49:49 +08:00
faffcd90f8 test: add more foreign key test (#40650)
close pingcap/tidb#40649
2023-01-17 15:47:48 +08:00
338fd30fc9 ddl: reimplement get flashback cluster related key ranges (#40460)
close pingcap/tidb#40318, close pingcap/tidb#40477
2023-01-13 13:47:46 +08:00
b1ecabb559 txn: Optimize pessimistic transaction by supporting locking with conflict (#35588)
close pingcap/tidb#40537
2023-01-13 11:09:46 +08:00
b8e5460a84 *: add new global variable tidb_enable_resource_control as a switch (#40440)
ref pingcap/tidb#38825
2023-01-12 22:01:46 +08:00
a917dc574e *: add more tests and fix some bugs for multi-valued index (#40518)
* fix

Signed-off-by: xiongjiwei <xiongjiwei1996@outlook.com>

* add more test

Signed-off-by: xiongjiwei <xiongjiwei1996@outlook.com>

Signed-off-by: xiongjiwei <xiongjiwei1996@outlook.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-12 17:49:53 +08:00
26dab31068 ttl: support float number and store ttl_job_interval in info schema (#40509)
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Co-authored-by: Weizhen Wang <wangweizhen@pingcap.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-12 16:42:34 +08:00
eb35c773b5 ddl: avoid commit conflicts when updating/delete from mysql.tidb_ddl_reorg. (#38738)
* Added test case

* ddl fix #38669.

The issue was that mysql.tidb_ddl_reorg table was updated by an
inner transaction after the outer transaction started,
which then made a commit conflict in the outer transaction,
when it deleted the same row.

* Fixed typo in comment

* Added test case for #24427

* Disabled tests for CI testing

* Revert "Disabled tests for CI testing"

This reverts commit 17c28f30ba8802c578fed5653107aa6995e17607.

* Revert "Revert "Disabled tests for CI testing""

This reverts commit 65c84d94f7ab4440c739703312f5329619c6ccdc.

* removed test skips

* Clean up the tidb_ddl_reorg entry after DDL is completed

* Use a cleanup job afterwards instead.

* Fixed test

* Moved cleanup before asyncNotify

* More detailed test failure log

* Refined test error message

* Injecting timoeut to get stack traces from CI

* Updated Debug Dump on timeout

* Delete mulitple entries in tidb_ddl_reorg if needed

* Linting

* Linting

* Added CI debug logs

* Linting + CI debugs

* fixed CI debug

* Try to cleanup also if job.State == synced

* check for non-error of runErr instead of error...

* Use a new session, instead of reusing worker.sess

* Also handle case when job == nil

* Removed CI debug logs

* Misssed change session from w.sess to newly created sess

* Improved TestConcurrentDDLSwitch and added CI debug logs

* Always cleaning up all orphan mysql.tidb_ddl_reorg entries

* linting

* Also cleanup if job is nil

* Updated TestModifyColumnReorgInfo + CI debug logs

* more CI debug

* refactored the cleanupDDLReorgHandle code

* Added missing cleanup in handleDDLJobQueue

* Removed debug panic

* Code cleanup

* Test updates

* Debug cleanup

* Cleaned up test after removal of old non-concurrent DDL code merge

* Linting

* always wrap changes to tidb_ddl_reorg in an own transaction

+ fixed some typos

* Minimum fix

* Always update reorg meta, not only on error

* Issue is here :)

* Fixed newReorgHandler

* Wrapped more tidb_ddl_reorg changes into separate transactions

* linting

* Removed updateDDLReorgStartHandle

* cleanups

* Made runInTxn a method on *session, instead of normal function

* Update test

* Final touches

* Removed duplicate test

* CleanupDDLReorgHandles should only be called from HandleJobDone.

* Variable rename

* Renamed 'delete' variabel name

* Updated test

* small revert

* Removed timeout debugging code

* Simplified the cleanup to only start a new txn and not a new session

* Reverted the change of GetDDLInfo

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-11 21:18:33 +08:00
2cf328bf65 ddl: let concurrent truncate on the same table depend on the previous one (#40501)
* done

Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>

* refine test

Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>

Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-11 18:06:33 +08:00
caffd8d6c5 ttl: forbid creating/altering a table with TTL options when pk contains float/double column (#40487)
* ttl: forbid create/alter a table with TTL options when pk contains float/double column

* format

* update

* update

* update

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-11 16:22:33 +08:00
1c8007d10b ddl: skip deleting the unmatched index key on merge (#40465)
close pingcap/tidb#40464
2023-01-10 22:00:23 +08:00
45d71af649 ddl: support displaying sub-job reorg type in admin show ddl (#40387)
close pingcap/tidb#40386
2023-01-10 12:50:22 +08:00
b477b1c946 *: Supports create/alter/drop resource group (#40188)
ref pingcap/tidb#38825
2023-01-09 13:44:22 +08:00
005c8d8ef8 *: remove the support of the amending transaction (#39714)
close pingcap/tidb#40381
2023-01-06 18:26:21 +08:00
b226dfcb05 ttl: add ttl_job_interval attribute and remove tidb_ttl_job_interval variable (#40033)
close pingcap/tidb#40028
2023-01-06 17:56:21 +08:00
43ebc64094 ddl: support online create multi-valued index (#40304)
close pingcap/tidb#40337
2023-01-06 16:24:21 +08:00
e1a2b58655 ddl: fill in original default for extra writable columns in batch insert (#40198)
close pingcap/tidb#40192
2023-01-06 09:46:20 +08:00
affe126097 *: support curdate() as column's default value | tidb-test=pr/2057 (#40326)
close pingcap/tidb#38356
2023-01-05 16:14:20 +08:00
cb5affbc3c ddl, parser: Implement the write-reorg state split task related functions, and the related interfaces of backfill worker (#39982)
close pingcap/tidb#37123
2023-01-04 15:20:19 +08:00
73c8cc721f ddl: persist index info after changing backfill state (#40229)
close pingcap/tidb#40217
2023-01-04 14:04:19 +08:00
e95881f64c ddl: fix flaky test TestGlobalVariablesOnFlashback (#40291)
close pingcap/tidb#40287
2023-01-04 11:42:19 +08:00
1f344ba108 autoid_service: add unit test for the package (#40193) 2023-01-03 19:40:19 +08:00
be8caa6549 ttl: disable ttl job when recover/flashback table/database/cluster (#40268)
close pingcap/tidb#40265
2023-01-03 15:50:19 +08:00
702a5598f9 ddl, parser: make generated column and expression index same as MySQL (#39888)
close pingcap/tidb#39826
2022-12-30 20:20:17 +08:00
f7de8beede *: remove the support of the old ddl framework (#39684)
ref pingcap/tidb#39824
2022-12-30 18:30:18 +08:00
6131e3f38e ddl: check default value again in updateColumnDefaultValue (#40230)
close pingcap/tidb#40164
2022-12-30 16:00:17 +08:00
b94042c0b5 planner: refine planner code for disaggregated tiflash mode (#39813)
close pingcap/tidb#39814
2022-12-29 22:02:20 +08:00
6dff69f680 ddl: Support flashback cluster with ddl history (#40209)
ref pingcap/tidb#40026
2022-12-29 21:02:19 +08:00
c8124a0595 ddl: Disable RENAME COLUMN for partitioning columns | tidb-test=pr/2054 (#40151)
close pingcap/tidb#40150
2022-12-29 09:18:16 +08:00
bddfc6244e ddl: add more foreign key test case (#40052)
close pingcap/tidb#40189
2022-12-28 12:40:16 +08:00
32f9604345 ddl: ignore internal http client goroutine in leak tests (#40190)
close pingcap/tidb#40183
2022-12-27 21:04:16 +08:00
83d275cc53 ddl: Refine the error message to compatible with MySQL when drop a partition table partition key column (#38740)
close pingcap/tidb#38739
2022-12-27 18:24:16 +08:00
c30a9fffe1 ddl: prohibit change name of partitioning column (#40147)
close pingcap/tidb#40135
2022-12-24 10:52:15 +08:00
d2be278578 ddl: set context correctly in the setDDLLabelForDiagnosis (#40090)
close pingcap/tidb#40099
2022-12-23 15:04:14 +08:00
53edd892a3 ddl: fix issue of partition table with foreign key and add more test case (#40122) 2022-12-23 13:04:14 +08:00
130568716e ddl: fix issue of add foreign key too slow in big table (#40112)
close pingcap/tidb#40111
2022-12-22 23:02:55 +08:00
ad0c202088 *: fix issue of multi-schema change with foreign key (#40042)
close pingcap/tidb#40037
2022-12-21 19:58:55 +08:00
b4f500e018 ddl: check the limitation when creating multi-valued index (#39818)
close pingcap/tidb#40086
2022-12-21 18:08:55 +08:00