Commit Graph

439 Commits

Author SHA1 Message Date
Lucas a7e3df4ab1
[Metrics] Supply extra metrics to monitor the flows under `prefer-leader` mode. (#716)
Signed-off-by: Lucasliang <nkcs_lykx@hotmail.com>
2023-03-13 18:08:39 +08:00
iosmanthus c21bf9396a
add api_version for mpp task meta (#738) 2023-03-13 15:07:26 +08:00
iosmanthus eb0bd61645
attach keyspace_id for manual compact request (#737) 2023-03-13 14:53:59 +08:00
MyonKeminta f555fdd2c9
txn: support force locking and lock only if exists be used together (#727)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
Co-authored-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2023-03-09 18:08:32 +08:00
Yongbo Jiang df993878bd
*: update pd client (#734)
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
2023-03-09 11:34:04 +08:00
Liqi Geng 4037273b3c
Merge pull request #728 from guo-shaoge/support_engine_role
region_cache: support <engine_role, write> for disaggregated tiflash
2023-03-07 15:58:41 +08:00
guo-shaoge bd24a9e443
Merge branch 'master' into support_engine_role 2023-03-07 15:47:49 +08:00
you06 8a8ef35790
support non-block read region (#725)
Signed-off-by: you06 <you1474600@gmail.com>
2023-03-07 15:15:35 +08:00
cfzjywxk bdd41058aa
metrics: seperate metrics with source scope for txn command (#723)
* seperate metrics with source scope

Signed-off-by: cfzjywxk <lsswxrxr@163.com>

* fix async pessimistic rollback

Signed-off-by: cfzjywxk <lsswxrxr@163.com>

* fix missing definition

Signed-off-by: cfzjywxk <lsswxrxr@163.com>

---------

Signed-off-by: cfzjywxk <lsswxrxr@163.com>
2023-03-06 22:12:45 +08:00
guo-shaoge b26f90ead7
Merge branch 'master' into support_engine_role 2023-03-06 18:05:41 +08:00
guo-shaoge 39cd84957f fix fmt
Signed-off-by: guo-shaoge <shaoge1994@163.com>
2023-03-06 18:05:17 +08:00
guo-shaoge 0d003d077b region_cache: support <engine_role, write> for disaggregated tiflash
Signed-off-by: guo-shaoge <shaoge1994@163.com>
2023-03-06 17:53:57 +08:00
disksing 31d55e522c
*: remove deprecated linters (#726)
Signed-off-by: disksing <i@disksing.com>
2023-03-06 12:17:18 +08:00
Yongbo Jiang 3f7860f109
region_request: handle resource group error before Backoff (#719)
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Co-authored-by: disksing <i@disksing.com>
2023-03-02 13:40:57 +08:00
Yongbo Jiang e2da552702
*: Update pd client (#722)
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Co-authored-by: disksing <i@disksing.com>
2023-02-28 17:15:02 +08:00
cfzjywxk 49323956ae
metric: seperate source for txn cmd (#721)
Signed-off-by: cfzjywxk <lsswxrxr@163.com>
2023-02-28 15:40:40 +08:00
iosmanthus 11d34cbd8a
fix attach api ctx error for unknown requests like StoreSafeTS (#720)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2023-02-28 13:47:31 +08:00
glorv 596b79404d
set group name in twoPhaseCommitter (#718)
Signed-off-by: glorv <glorvs@163.com>
2023-02-27 16:39:23 +08:00
disksing 891ef575be
update golang.org/x/net (#717)
Signed-off-by: disksing <i@disksing.com>
2023-02-27 13:43:10 +08:00
Weizhen Wang 40a82457eb
tikv: configurable pool (#714)
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
2023-02-27 11:23:58 +08:00
ShuNing 811a62bb69
ci: fix compatibility test due to the low GO version (#711)
Signed-off-by: nolouch <nolouch@gmail.com>
2023-02-24 16:14:48 +08:00
Yilin Chen a27994e5aa
Support load-based replica read (#675)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2023-02-22 15:35:43 +08:00
iosmanthus e0e6019f8a
attach keyspace_id to tikv/tiflash requests (#682) 2023-02-20 13:10:03 +08:00
ekexium 2051f572a1
fix: lock_if_exist + aggressive locking (#705)
* fix: locking commands skipped by lock_only_if_exists are mistakenly calculated as successfully locked for aggressive locking

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

* refactor

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

---------

Signed-off-by: ekexium <ekexium@gmail.com>
2023-02-20 09:50:30 +08:00
Ping Yu b3c491995e
fix context leak in BatchDelete (#704)
Signed-off-by: Ping Yu <yuping@pingcap.com>
2023-02-15 15:57:57 +08:00
ShuNing 95ebf6a863
upgrade pd client version (#701)
Signed-off-by: nolouch <nolouch@gmail.com>
2023-02-09 12:40:22 +08:00
ShuNing b9d788cc4a
resource_contrl: change the log level (#700)
Signed-off-by: nolouch <nolouch@gmail.com>
2023-02-09 11:42:15 +08:00
JmPotato bdcfab8928
Consider the number of replicas when calculating RU (#684)
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-02-08 22:56:14 +08:00
Ping Yu 9b06301c47
fix context leak in rawkv.BatchPut (#697)
Signed-off-by: Ping Yu <yuping@pingcap.com>
2023-02-08 11:19:21 +08:00
glorv 29dfcc2729
fix the calculation of write request total write bytes (#691)
Signed-off-by: glorv <glorvs@163.com>
2023-02-07 17:07:54 +08:00
disksing 6a1ecaa292
integration: update tidb to master (#695)
Signed-off-by: disksing <i@disksing.com>
2023-02-07 17:00:07 +08:00
Lucas bce56a5831
ReadMode: introduce AutoFollowerRead mechanism by adding a new `ReadMode == PreferLeader` (#671)
Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
2023-02-07 16:42:52 +08:00
MyonKeminta 50e86f7d3c
Add metrics and statistics about aggressive locking (#687)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2023-02-07 12:31:34 +08:00
disksing 9b3ecc1dca
*: update pd client (#694)
Signed-off-by: disksing <i@disksing.com>
2023-02-07 12:00:04 +08:00
Hangjie Mo 56c521f109
internal: update `FlashbackInProgress` error msg (#692)
Signed-off-by: Hangjie Mo <mohangjie1995@gmail.com>
2023-02-06 17:34:59 +08:00
Wenxuan 3edbadb227
Increase consistent hash replicas to 200 for better balance (#688)
Signed-off-by: Wish <breezewish@outlook.com>
2023-02-06 11:19:46 +08:00
Hu# 8fd09cd88c
config support both path and names (#683)
Signed-off-by: HuSharp <jinhao.hu@pingcap.com>
2023-02-02 18:11:45 +08:00
Smilencer 35416c4c43
Add gRPC connection monitor and fix related bug (#665)
Signed-off-by: Smityz <smityz@qq.com>
Co-authored-by: disksing <i@disksing.com>
2023-01-31 16:28:48 +08:00
Yilin Chen 78470adc3d
Rewind after cacheGC reaches the end (#678)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2023-01-30 15:45:29 +08:00
Hu# 3c20a793ba
update tidb version (#676)
Signed-off-by: HuSharp <jinhao.hu@pingcap.com>
2023-01-20 14:57:33 +08:00
Jinpeng Zhang f893837752
Merge pull request #648 from tidblabs/ru-model
Introduce the resource control client
2023-01-20 10:14:35 +08:00
JmPotato 313152f32c Simplify the code
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-20 10:03:23 +08:00
JmPotato f24b7314ff Refine the code
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 20:31:38 +08:00
JmPotato ed6d507bc7 Update the go.mod
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 20:10:24 +08:00
Jinpeng Zhang f4c3cc6313
Merge pull request #674 from HuSharp/support_resource_group_watch
client: update pd client
2023-01-19 19:19:55 +08:00
HuSharp 158f72c6f3 update pd client
Signed-off-by: HuSharp <jinhao.hu@pingcap.com>
2023-01-19 18:06:38 +08:00
JmPotato 319f6b9df0 Make the switch global
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 17:42:14 +08:00
JmPotato 2a19c65068 Export the switch
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 17:18:56 +08:00
JmPotato 8553f26149 Fix the test
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 16:55:26 +08:00
JmPotato 08694efec4 Fix the check
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 16:31:47 +08:00