Yilin Chen
be31f33ba0
Avoid sending requests to unhealthy leader ( #503 )
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2022-06-13 19:27:34 +08:00
ekexium
e69cd80e58
Preserve is_retry_request flag for prewrite when retrying with region errors ( #513 )
...
* add a test to verify the incorrect setting of is_retry_request
Signed-off-by: ekexium <ekexium@gmail.com>
* preserve the retry flag for prewrite
Signed-off-by: ekexium <ekexium@gmail.com>
* fix test
Signed-off-by: ekexium <ekexium@gmail.com>
* add more explanations
Signed-off-by: ekexium <ekexium@gmail.com>
2022-05-31 16:04:28 +08:00
guo-shaoge
700cbe60d2
support find stores with tiflash_mpp label ( #481 )
...
Signed-off-by: guo-shaoge <shaoge1994@163.com>
Co-authored-by: Yilin Chen <sticnarf@gmail.com>
2022-05-23 11:22:53 +08:00
Wenxuan
5d3195ce11
tiflash: Add TiFlash compact command ( #504 )
...
* Add TiFlash compact command
Signed-off-by: Wish <breezewish@outlook.com>
* Fix integration test go.mod
Signed-off-by: Wish <breezewish@outlook.com>
* Upgrade tidb dependency
Signed-off-by: Wish <breezewish@outlook.com>
* Use newer golang compiler
Signed-off-by: Wish <breezewish@outlook.com>
2022-05-17 21:31:43 +08:00
you06
79f010d806
metrics: add loading region cache duration ( #502 )
...
* add latency for loading region region
Signed-off-by: you06 <you1474600@gmail.com>
* rename "*ReginoMiss" to "*CacaheMiss"
Signed-off-by: you06 <you1474600@gmail.com>
* rename metrics
Signed-off-by: you06 <you1474600@gmail.com>
2022-05-16 15:21:22 +08:00
Spade A
e007187e51
region_cache: Add comments for LocateBucket ( #497 )
...
* update
Signed-off-by: SpadeA-Tang <u6748471@anu.edu.au>
* update
Signed-off-by: SpadeA-Tang <u6748471@anu.edu.au>
* update
Signed-off-by: SpadeA-Tang <u6748471@anu.edu.au>
2022-05-16 11:52:21 +08:00
Spade A
2be4a58dbc
region_cache: rename LocateBucketV2 to LocateBucket and let the old LocateBucket be the internal function of the new LocateBucket ( #496 )
...
Signed-off-by: SpadeA-Tang <u6748471@anu.edu.au>
2022-05-13 15:26:07 +08:00
Connor
a38ac96984
Add backoff for error recovery in progress ( #485 )
...
* add backoff for error recovery in progress
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2022-05-09 11:50:19 +08:00
Spade A
3705989fa1
Wrap locateBucket to handle with edges ( #486 )
...
Signed-off-by: SpadeA-Tang <u6748471@anu.edu.au>
2022-05-07 15:34:05 +08:00
cfzjywxk
7f6daad88a
print original error if the recv failure is injected ( #474 )
...
Signed-off-by: cfzjywxk <lsswxrxr@163.com>
2022-04-20 13:49:05 +08:00
disksing
ec236b6435
fix linter warning ( #470 )
...
Signed-off-by: disksing <i@disksing.com>
2022-04-11 21:29:30 +08:00
Lei Zhao
f73ec0e675
client: fix the race between connArray.Close() and connArray.Get() ( #465 )
...
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
2022-04-06 17:12:03 +08:00
Lei Zhao
5b4040a95c
reconnect when meets store-not-match errors ( #456 )
...
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
2022-03-24 17:30:51 +08:00
cfzjywxk
f4eae62b7e
copy the needed fields for backoffer type ( #453 )
...
Signed-off-by: cfzjywxk <lsswxrxr@163.com>
2022-03-21 20:35:29 +08:00
Lei Zhao
7e34d88af3
region_cache: support buckets ( #439 )
...
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
2022-03-09 13:52:39 +08:00
Zak Zhao
d3c2456967
Add a columnFamily feature for client-go when use rawput in tikv ( #425 )
...
Signed-off-by: joccau <zak.zhao@pingcap.com>
2022-03-02 11:31:44 +08:00
Lei Zhao
f43cc3acc0
region_cache: more comments and minor refactor ( #427 )
...
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
2022-02-23 16:53:24 +08:00
disksing
589cf79b2a
*: update etcd client to v3.5.2 ( #423 )
...
Signed-off-by: disksing <i@disksing.com>
2022-02-17 22:01:16 +08:00
Lei Zhao
3a7675742e
txnkv: read through locks ( #380 )
...
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
2021-12-01 16:35:10 +08:00
MyonKeminta
a3f1c41ac1
Fix a typo ( #376 )
...
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
Co-authored-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2021-11-15 15:10:40 +08:00
JmPotato
894037ac74
Print the Region key with a more readable format ( #375 )
...
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2021-11-14 22:08:58 -08:00
MyonKeminta
5a13df80a6
Add thread safety explanation to RegoinCache's comment ( #362 )
...
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
Co-authored-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2021-11-01 14:43:36 +08:00
disksing
9ec50224be
*: replace pingcap/errors with pkg/errors ( #357 )
...
Signed-off-by: disksing <i@disksing.com>
2021-11-01 11:59:52 +08:00
disksing
a7d8ea1587
rawkv: remove use of errors.Trace ( #336 )
...
Signed-off-by: disksing <i@disksing.com>
2021-10-13 07:29:43 +00:00
disksing
3e9bd8b941
internal/locate: remove use of errors.Trace ( #332 )
...
Signed-off-by: disksing <i@disksing.com>
2021-10-11 17:05:36 +00:00
disksing
97fac134af
error: replace usages of terror.Log ( #322 )
...
Signed-off-by: disksing <i@disksing.com>
2021-10-11 06:08:21 +00:00
Lei Zhao
3b672526bb
fix unknown region error metrics ( #315 )
...
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
Co-authored-by: disksing <i@disksing.com>
2021-09-29 05:50:39 +00:00
xufei
f65172694b
add `skipSwitchPeerLog` in `OnSendFailForTiFlash` ( #309 )
...
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
2021-09-23 09:55:21 +00:00
Song Gao
6ca8098ae0
add warn log ( #308 )
...
Signed-off-by: yisaer <disxiaofei@163.com>
2021-09-18 15:13:19 +08:00
tier-cap
f4a640e8e0
rechange to retry when tikv disk full ( #302 )
...
Signed-off-by: tier-cap <zhengxiaojin@pingcap.com>
2021-09-15 13:01:35 +08:00
Song Gao
a8fa8acd44
rename txnScope as readReplicaScope ( #305 )
...
Signed-off-by: yisaer <disxiaofei@163.com>
2021-09-13 17:49:25 +08:00
Lei Zhao
06c3868595
select replica for replica read requests using ReplicaSelector ( #285 )
...
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
2021-09-02 02:10:36 +00:00
Yilin Chen
b440ea2f58
select replica for forward requests using RegionRequestSender ( #264 )
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2021-08-16 19:27:02 +08:00
disksing
df2119f51b
client: cleanup RPCClient options ( #268 )
...
Signed-off-by: disksing <i@disksing.com>
2021-08-16 07:11:08 +00:00
disksing
288c649636
fix license ( #267 )
...
Signed-off-by: disksing <i@disksing.com>
2021-08-15 01:48:01 +08:00
Lei Zhao
d859acfa07
locate: don't backoff if fails to decode region key ( #263 )
...
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
2021-08-10 17:35:00 +08:00
tier-cap
14892a598e
*: allow to custom disk_full_opt for transactions ( #256 )
...
Signed-off-by: tier-cap <zhengxiaojin@pingcap.com>
2021-08-06 16:56:16 +08:00
Yilin Chen
7329876df3
add flag in Context for retried requests ( #244 )
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2021-07-27 16:56:30 +08:00
ClSlaid
c7db3e3cfb
[internal]: improve RegionRequestRuntimeStats ( #235 )
...
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
2021-07-15 09:04:40 +00:00
Han Fei
2c7970b2b7
export get all tiflash stores information ( #225 )
...
Signed-off-by: Han Fei <hanfei19910905@gmail.com>
2021-07-12 16:20:38 +08:00
disksing
16fb6792bf
move mocktikv to internal package ( #209 )
...
Signed-off-by: disksing <i@disksing.com>
Co-authored-by: Shirly <AndreMouche@126.com>
2021-07-08 12:13:17 +08:00
disksing
d0a98864a6
*: move logutil to internal directory ( #207 )
...
Signed-off-by: disksing <i@disksing.com>
2021-07-05 15:15:41 +08:00
disksing
4e8c0a34c8
move client to internal package ( #194 )
...
Signed-off-by: disksing <i@disksing.com>
Co-authored-by: iosmanthus <MyOsmanthusTree@gmail.com>
2021-06-30 16:18:10 +08:00
disksing
58b6783d1b
*: move retry to internal package ( #186 )
...
Signed-off-by: disksing <i@disksing.com>
2021-06-30 12:01:15 +08:00
Yilin Chen
97edee854c
clear RPC error only if prewrite succeeds ( #187 )
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2021-06-29 16:38:15 +08:00
disksing
c8aa7be077
*: move locate to internal package ( #183 )
...
Signed-off-by: disksing <i@disksing.com>
2021-06-28 10:15:50 +08:00