Commit Graph

19501 Commits

Author SHA1 Message Date
970ac9150c planner: refactor plan cache value code (#40656)
ref pingcap/tidb#40219
2023-01-18 17:21:51 +08:00
294408188e resourcemanager: avoid to get nil after task finished when to stop task (#40699)
close pingcap/tidb#40700
2023-01-18 17:05:52 +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
f268e29b35 ttl: execute scan tasks (#40564)
close pingcap/tidb#40364
2023-01-18 15:55:51 +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
89de573660 BR: add lock with ttl for checkpoint backup (#40563)
close pingcap/tidb#40561
2023-01-18 14:35:51 +08:00
6b752fe805 domain: let background process unify wg.Run (#40640) 2023-01-18 14:09:51 +08:00
1f44d20406 util: remove empty folder (#40681) 2023-01-18 13:49:51 +08:00
5cb64fd09a executor: fix buildTableReaderForIndexJoin on partition table (#40674)
close pingcap/tidb#40596
2023-01-18 11:59:50 +08:00
05e20162a4 Revert "planner: show un-cacheable reasons for execute statements" (#40680)
ref pingcap/tidb#36598
2023-01-18 11:31:50 +08:00
a761c0288c *: Support learner replica read (#39979)
close pingcap/tidb#40449
2023-01-18 10:59:51 +08:00
787cb27265 meta: add lock at autoid.(*allocator).Base() (#40588)
close pingcap/tidb#40584
2023-01-18 00:43:59 +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
22746c0068 privilege,planner/core: add dynamic privilege RESOURCE_GROUP_ADMIN for resource group operation (#40632)
ref pingcap/tidb#38825
2023-01-17 20:47:49 +08:00
f7d35abd12 domain: use enhanced waitGroupWrapper in domain #40606 (#40626)
ref pingcap/tidb#40330
2023-01-17 20:03: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
a879ba2d5b planner: show un-cacheable reasons for execute statements (#40651)
ref pingcap/tidb#36598
2023-01-17 17:29: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
45e85d9bd4 planner: disable plan-cache for plans with IndexMerge accessing Multi-Valued Index (#40646)
ref pingcap/tidb#40191
2023-01-17 15:17:48 +08:00
90e7271940 testkit: reset the resource manager after test finishes (#40638) 2023-01-17 13:55:49 +08:00
bdc6f4b541 planner: refactor to put all plan-cacheability-check functions together (#40625)
ref pingcap/tidb#36598
2023-01-17 13:29:49 +08:00
17df596863 planner: prepared plan cache support cached plan with placeholder in limit clause (#40196)
ref pingcap/tidb#40219
2023-01-17 12:51:49 +08:00
4620df6a8d executor,store/copr: trace the buildCopTask and limitExec close duration when it's slow (#40579)
ref pingcap/tidb#40441
2023-01-17 11:11:48 +08:00
b9fb22d5bf statistics: fix data race in the Handle.IsTableLocked (#40572)
close pingcap/tidb#40567
2023-01-17 09:13:48 +08:00
aa51b46ead executor: fix concurrent use of testkit in tests and add nil check (#40627)
close pingcap/tidb#40206
2023-01-16 22:29:49 +08:00
dbce2cbb51 *: update client-go (#40622)
close pingcap/tidb#40461
2023-01-16 20:59:48 +08:00
7ba1f0aa9a resourcemanager: add task manager to support forcing to stop the task. (#40560)
close pingcap/tidb#40566
2023-01-16 19:33:48 +08:00
1083f79f51 handle: use separete ctx for initStats (#40604)
close pingcap/tidb#40548
2023-01-16 18:23:48 +08:00
86f39822d6 tests: Add test case for the constraint check on repeated pessimistic lock request on left pessimistic lock (#40520)
ref pingcap/tidb#40114
2023-01-16 18:05:48 +08:00
03e192b6c4 privileges: add missing items for show privileges | tidb-test=pr/2066 (#40600)
close pingcap/tidb#40591
2023-01-16 14:51:48 +08:00
a21098f6e8 util: support enhance waitGroupper with exited checking (#40557) 2023-01-16 12:23:48 +08:00
ee6d291f4e planner: fix prepare explain index out of range bug (#40568)
close pingcap/tidb#38323
2023-01-16 11:25:48 +08:00
604883a5e1 planner: introduce a new variable to adjust the penalty double read cost of IndexJoin (#40571)
close pingcap/tidb#40556
2023-01-15 21:07:48 +08:00
73f2360527 log-backup: remove k-v record in etcd when stop log-backup task (#40431)
close pingcap/tidb#40403
2023-01-14 18:03:47 +08:00
5e291ec127 executor: fix 'ADMIN SHOW DDL JOB QUERIES LIMIT m OFFSET n' may return multiple lines (history jobs) with same job id (#39248)
close pingcap/tidb#39233
2023-01-13 19:13:48 +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
b61932461b ttl: submit ttl scan task to the system table (#40422)
close pingcap/tidb#40362, ref pingcap/tidb#40363
2023-01-13 15:51:46 +08:00
17c0d5481b executor: support set resource-group-name for kv request (#40237)
ref pingcap/tidb#38825
2023-01-13 14:13:46 +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
9a917c87fa resourcemanager, util: add resourcemanager.Unregister when closing spmcpool (#40547)
close pingcap/tidb#40546
2023-01-13 10:45:46 +08:00
bd7fb08838 distsql: fix a bug of ranger.Range to kv.KeyRange conversion (#40204)
close pingcap/tidb#40158
2023-01-13 10:17:46 +08:00
8af12508ae statistics: fix a calculation logic flaw in (*Index).GetRowCount (#40522)
ref pingcap/tidb#39593
2023-01-13 01:39: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
fbc38f8b7f planner: correctly handle expression.ScalarFunction in the buildSemiJoinForSetOperator (#40390)
close pingcap/tidb#40279
2023-01-12 19:07:52 +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
aef752a407 lightning: continue this region round and retry on next round when TiKV is busy (#40278)
* finish

Signed-off-by: lance6716 <lance6716@gmail.com>

* fix some comments

Signed-off-by: lance6716 <lance6716@gmail.com>

* fix CI

Signed-off-by: lance6716 <lance6716@gmail.com>

* address comment

Signed-off-by: lance6716 <lance6716@gmail.com>

* fix errdoc

Signed-off-by: lance6716 <lance6716@gmail.com>

* revert a change

Signed-off-by: lance6716 <lance6716@gmail.com>

* add lightning debug log

Signed-off-by: lance6716 <lance6716@gmail.com>

* fix bug

Signed-off-by: lance6716 <lance6716@gmail.com>

* address comment

Signed-off-by: lance6716 <lance6716@gmail.com>

Signed-off-by: lance6716 <lance6716@gmail.com>
Co-authored-by: Weizhen Wang <wangweizhen@pingcap.com>
2023-01-12 15:24:33 +08:00