Commit Graph

423 Commits

Author SHA1 Message Date
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
HuSharp 1679631b9a update tidb
Signed-off-by: HuSharp <jinhao.hu@pingcap.com>
2023-01-19 16:23:55 +08:00
JmPotato 320af6501e Introduce the switch
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 16:14:47 +08:00
JmPotato 88f730126e Merge the upstream
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 12:19:51 +08:00
JmPotato d4ffd3d25b Update the go.mod
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 12:18:26 +08:00
JmPotato 494bebd702 Rename
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-19 11:50:30 +08:00
iosmanthus 7409e690af
check API V2 key in DecodeKey (#666)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2023-01-19 10:13:17 +08:00
disksing bd55989520
fix integration test (#673)
Signed-off-by: disksing <i@disksing.com>
2023-01-18 20:19:38 +08:00
JmPotato 35b648cf98 Address the comments
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-18 20:15:50 +08:00
Hu# 2a02753d9c
client: update pd/client to repair kvproto compatibility (#667)
Signed-off-by: HuSharp <jinhao.hu@pingcap.com>
2023-01-18 19:18:40 +08:00
JmPotato 6ee294fedf Introduce the resource control client
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-01-18 17:14:24 +08:00
fengou1 fe5b35c5f5
refactor: range task log with more accurate info (#657)
Signed-off-by: fengou1 <feng.ou@pingcap.com>
2023-01-12 14:20:23 +08:00
Smilencer f2ff1ce65d
add tombstone check (#660)
Signed-off-by: Smityz <smityz@qq.com>
Co-authored-by: disksing <i@disksing.com>
2023-01-12 13:23:02 +08:00
Yilin Chen a2964b7151
Add a background region cache GC goroutine (#664)
* Add a background region cache GC goroutine

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* Change interval to 1s and regionPerRound to 50

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2023-01-11 16:47:55 +08:00
Yang Zhang 1b1a805e61
Support learner replica read (#643)
Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
2023-01-11 14:37:06 +08:00
Lucas c59833429b
Bug fix: fix the Round-Robin algorithm when "ReadMode == ReplicaReadMixed". (#663)
Signed-off-by: Lucasliang <nkcs_lykx@hotmail.com>
2023-01-11 14:15:36 +08:00
David f313ddf58d
reformat codec and add keyspace support (#649)
Signed-off-by: David <8039876+AmoebaProtozoa@users.noreply.github.com>
2023-01-10 15:15:33 +08:00