Commit Graph

410 Commits

Author SHA1 Message Date
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
Zwb c20405f345
support witness peers (#633)
Signed-off-by: Wenbo Zhang <ethercflow@gmail.com>
2023-01-09 20:53:19 +08:00
wjHuang 2d2a3fa00e
*: remove the support of `amend transaction` (#635)
* done

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

* done

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

* fix test

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

* fix lint

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

* fix test

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

* fix

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

Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2023-01-09 16:30:27 +08:00
glorv 4e1d38d8f8
add resource group name in request context (#650)
Signed-off-by: glorv <glorvs@163.com>
2023-01-09 15:18:45 +08:00
Weizhen Wang 5a4b9accad
fix data race in the LockKeys (#655)
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
2023-01-06 13:31:13 +08:00
haojinming 1780ed1dca
Fix security alert (#654)
Signed-off-by: haojinming <jinming.hao@pingcap.com>
2023-01-05 13:54:53 +08:00
MyonKeminta 0f633e4163
Fix incorrect insertion behavior in aggressive locking mode and add tests (#651)
* Add more tests and fix the bug of insert in aggressive locking

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Fix tests

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Fix insert test

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Avoid primary re-selecting in TestAggressiveLockingLoadValueOptionChanges

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Address comments

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
Co-authored-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2023-01-04 15:24:09 +08:00
tiancaiamao 43601f3d49
go.mod: update github.com/tiancaiamao/gp (#652)
Signed-off-by: tiancaiamao <tiancaiamao@gmail.com>
2022-12-30 17:39:35 +08:00
tiancaiamao 018c59dbd8
bind the goroutine pool with store and close on Close (#645)
Signed-off-by: tiancaiamao <tiancaiamao@gmail.com>
2022-12-26 16:01:48 +08:00
hehechen fe3536dd59
MinSafeTS support TiFlash (#642)
Signed-off-by: hehechen <awd123456sss@gmail.com>
2022-12-19 17:16:53 +08:00
Liqi Geng a4f5c00b46
region_cache: refine GetTiFlashComputeRPCContextByConsistentHash
Signed-off-by: guo-shaoge shaoge1994@163.com
2022-12-19 15:59:31 +08:00
guo-shaoge 0bf06e87bf update log
Signed-off-by: guo-shaoge <shaoge1994@163.com>
2022-12-18 13:57:23 +08:00
guo-shaoge 60119cdd7a fix errors.Errorf
Signed-off-by: guo-shaoge <shaoge1994@163.com>
2022-12-17 16:46:55 +08:00
guo-shaoge ffc2788663 region_cache: refine GetTiFlashComputeRPCContextByConsistentHash(for detect alive)
Signed-off-by: guo-shaoge <shaoge1994@163.com>
2022-12-17 16:41:11 +08:00