Commit Graph

1832 Commits

Author SHA1 Message Date
556c267758 server, privileges: make tidb_auth_session_token compatible with password expiration and resource group (#40735)
ref pingcap/tidb#40614
2023-01-20 13:51:49 +08:00
dc30a5b7b3 *: LOAD DATA support load one file from s3 and other OSS (#40489)
ref pingcap/tidb#40499
2023-01-18 15:27: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
cbe228fe50 hint: fix the problem that set var hint is invalid when create binding (#40569)
close pingcap/tidb#40570
2023-01-13 18:29:47 +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
df019ae5ba parser: use identifier as user's resource group name (#40479)
* parser: use identifier as user's resource group name and also fix a drop resource group bug

Signed-off-by: BornChanger <dawn_catcher@126.com>

* executor: fix case

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: format parser.y

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: fix store function of resource group

Signed-off-by: BornChanger <dawn_catcher@126.com>

Signed-off-by: BornChanger <dawn_catcher@126.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-12 15:50: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
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
b912237ac7 planner: support keep_order and no_keep_order hint (#40089)
ref pingcap/tidb#39964
2023-01-09 21:42:22 +08:00
b477b1c946 *: Supports create/alter/drop resource group (#40188)
ref pingcap/tidb#38825
2023-01-09 13:44:22 +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
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
5327d07afc planner: refactor plan-cache UseCache flag (#40256)
ref pingcap/tidb#36598
2023-01-03 17:30:20 +08:00
494672cb51 admin: impl admin check index for mv index (#40270)
close pingcap/tidb#40272
2023-01-03 16:58:20 +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
6dff69f680 ddl: Support flashback cluster with ddl history (#40209)
ref pingcap/tidb#40026
2022-12-29 21:02:19 +08:00
cf34941401 ttl: make the TTL compatible with dumpling, lightning and BR (#40216)
close pingcap/tidb#40215
2022-12-29 16:30:21 +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
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
18c71f40f6 parser: fix cast function restore (#40129)
close pingcap/tidb#40130
2022-12-23 14:24:14 +08:00
fc3f04b7b6 parser: support keep_order and no_keep_order hint (#39965)
ref pingcap/tidb#39964
2022-12-21 22:16: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
ae58fa1c8b expression: introduce cast(... as ... array) in expression index (#39992)
close pingcap/tidb#40045
2022-12-20 12:56:54 +08:00
62a80014bd parser: support syntax set binding status by sql digest (#39515)
ref pingcap/tidb#39199
2022-12-14 22:42:52 +08:00
b41be060b9 expression: support json_overlaps function (#39867)
ref pingcap/tidb#39866
2022-12-14 12:48:52 +08:00
621115bf67 ttl, variables: add system variables for ttl job schedule (#39727)
close pingcap/tidb#39725
2022-12-13 14:28:51 +08:00
Bin
33e5baade9 fix: update ioutil.readall (#39850) 2022-12-13 10:24:51 +08:00
3183582106 parser: add cast to array and member of support (#39820)
close pingcap/tidb#39821
2022-12-12 21:28:51 +08:00
9488ca9db6 *: Add backfill job related tables and operations (#39616)
close pingcap/tidb#37122
2022-12-12 14:34:51 +08:00
59cda14a4e *: Support Failed-Login Tracking and Temporary Account Locking (#39322)
close pingcap/tidb#38938
2022-12-10 07:45:44 +08:00
8e3cbac057 *: bind user to some resource group (#39561)
ref pingcap/tidb#38825
2022-12-07 19:26:04 +08:00
7af9eb6028 parser: supports create/alter/drop resource group (#39546)
ref pingcap/tidb#38825
2022-12-05 19:32:08 +08:00
824ef608c7 *: support password expiration policy (#39035)
ref pingcap/tidb#9709, close pingcap/tidb#38936
2022-12-02 16:36:02 +08:00
40d1ddb364 *: support password reuse policy (#39162)
ref pingcap/tidb#38937
2022-12-02 09:58:01 +08:00
202f72389a planner: support create binding from history (#39436)
ref pingcap/tidb#39199
2022-12-01 19:50:03 +08:00
6a4b909c7d parser: add global variable to control ttl syntax (#39483)
close pingcap/tidb#39482
2022-12-01 18:18:01 +08:00
8e0e49ca65 *: support JSON format output in explain statement (#39253)
ref pingcap/tidb#39261
2022-12-01 12:12:01 +08:00
adcacd8d89 planner: support drop binding by sql digest (#39399)
ref pingcap/tidb#39199
2022-11-30 21:02:01 +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
37bd052ee5 planner: rewrite count star to count not null column (#39197)
close pingcap/tidb#37165
2022-11-28 23:57:59 +08:00
ae0bc84eed txn: support non-transactional replace (#39378)
ref pingcap/tidb#33485
2022-11-28 13:55:59 +08:00
7f632be1d5 ddl: add ttl related jobs / execution (#39298)
close pingcap/tidb#39269, close pingcap/tidb#39270, close pingcap/tidb#39271
2022-11-28 10:42:00 +08:00
dd0a479b1a planner, parser: add basic preparations for intersection type IndexMerge (#39396)
ref pingcap/tidb#39335
2022-11-25 19:37:59 +08:00
84fa999186 txn: support multi-table join in nt-dml (#39139)
ref pingcap/tidb#33485
2022-11-24 14:33:58 +08:00
84ee2845ad parser: use alter table remove ttl spec (#39341)
close pingcap/tidb#39340
2022-11-24 10:23:58 +08:00
2255898462 parser: add syntax for ttl option in ddl (#39277)
close pingcap/tidb#39268
2022-11-22 15:35:58 +08:00
9c48480180 parser, executor: implement plan replayer capture statement (#39181)
ref pingcap/tidb#38779
2022-11-17 23:09:56 +08:00
11ab7b4953 parser: add ActionReorganizePartition (#39183)
ref pingcap/tidb#38535
2022-11-16 18:39:55 +08:00