lance6716
20a4aa99a3
fix replace is missing
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-24 16:03:34 +08:00
lance6716
cab3a43e0e
fix replace is missing
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-24 15:56:27 +08:00
lance6716
abcd9b5e50
fix go mod tidy under integration_tests
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-24 15:50:13 +08:00
lance6716
db1a348d5d
update pd client
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-24 15:47:36 +08:00
lance6716
89e999557b
Merge branch 'master' of github.com:tikv/client-go into update-dep
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-24 15:41:40 +08:00
zyguan
e79e8008ce
fix the issue that health check may set liveness wrongly ( #1127 )
...
* fix the issue that health check may set liveness wrongly
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* fix lint issue
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* fix rawkv ut
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* fix data race
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* use getStore instead of accessing storeMu directly
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* make TestAccessFollowerAfter1TiKVDown stable
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* make TestBackoffErrorType stable
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* address comments
Signed-off-by: zyguan <zhongyangguan@gmail.com>
---------
Signed-off-by: zyguan <zhongyangguan@gmail.com>
Co-authored-by: disksing <i@disksing.com>
2024-01-24 15:11:01 +08:00
Weizhen Wang
1af8d0b0ca
*: upgrade grpc1.61 ( #1130 )
...
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
Co-authored-by: disksing <i@disksing.com>
2024-01-24 11:39:43 +08:00
zyguan
c9ecc6ed3b
fix the issue that prefer-leader doesn't try followers ( #1105 )
...
Signed-off-by: zyguan <zhongyangguan@gmail.com>
Co-authored-by: cfzjywxk <lsswxrxr@163.com>
2024-01-24 11:05:38 +08:00
lance6716
9d6071477a
Merge branch 'update-dep' of github.com:lance6716/client-go into update-dep
2024-01-23 16:06:13 +08:00
lance6716
cfee5d73dd
fix goroutine leak
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-23 16:05:55 +08:00
lance6716
3d7ff4c3c8
Merge branch 'master' into update-dep
2024-01-23 15:23:15 +08:00
lance6716
29355d50d1
update pd
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-23 15:07:19 +08:00
MyonKeminta
3480b5ed7c
Revert "fix: check kill signal against 0 ( #1102 )" ( #1129 )
...
This reverts commit 057c479dd8 .
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
Co-authored-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2024-01-23 13:54:05 +08:00
Weizhen Wang
fd2fc84032
use slices.Sort to eliminate bounds check ( #1128 )
...
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
2024-01-23 11:24:15 +08:00
zyguan
5d0ae57f22
region_cache: restrict access to store related fields ( #1106 )
...
* region_cache: restrict access to store related fields
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* fix a typo
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* resolve a todo
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* resolve an another todo
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* limit the use of store api
Signed-off-by: zyguan <zhongyangguan@gmail.com>
---------
Signed-off-by: zyguan <zhongyangguan@gmail.com>
Co-authored-by: cfzjywxk <lsswxrxr@163.com>
2024-01-22 21:39:56 +08:00
lance6716
77d23f7f5c
update
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-22 15:16:42 +08:00
lance6716
7645850ebf
Merge branch 'master' into update-dep
2024-01-22 15:13:03 +08:00
lance6716
7d4676e27a
update
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-22 15:12:23 +08:00
lance6716
c3ce73e405
update replace
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-22 15:12:23 +08:00
MyonKeminta
18ffa1fc5d
Check time spent on attempting RPC to avoid spending too much time on retrying ( #1117 )
...
* Check time spent on attempting RPC to avoid spending too much time on retrying
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
* Handle refreshRegionStore
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
* Add test
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>
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-22 15:12:23 +08:00
lance6716
5d925263d7
replace tidb package
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-22 15:12:23 +08:00
lance6716
cc42d3358d
go mod tidy
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-22 15:12:23 +08:00
lance6716
1b8062d6fc
fix lint
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-22 15:12:23 +08:00
MyonKeminta
b8a65870d6
Check time spent on attempting RPC to avoid spending too much time on retrying ( #1117 )
...
* Check time spent on attempting RPC to avoid spending too much time on retrying
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
* Handle refreshRegionStore
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
* Add test
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>
2024-01-18 20:48:43 +08:00
lance6716
60d940f97b
update mock impl
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-17 14:39:00 +08:00
lance6716
a5de69ac4d
dep: update pd client
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-17 14:25:17 +08:00
Weizhen Wang
1fd589dbf2
Change MinTLSVersion to TLSv1.2 ( #1116 )
...
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
2024-01-16 12:05:09 +08:00
MyonKeminta
b1256130a5
Fix the issue that leader change with nea leader info cause invalidStore state and lead to unnecessary backoff ( #1115 )
...
* Fix the issue that leader change with nea leader info cause invalidStore
state and lead to unnecessary backoff
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>
2024-01-15 20:59:47 +08:00
YangKeao
abda04c22a
export stats information about RPC count ( #1110 )
...
Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
2024-01-12 15:16:19 +08:00
glorv
57da889938
Merge pull request #1103 from nolouch/remove-log
...
remove the noise log when open debug level
2024-01-11 17:15:59 +08:00
glorv
d6f3951e9d
Merge branch 'master' into remove-log
2024-01-11 17:05:13 +08:00
ekexium
057c479dd8
fix: check kill signal against 0 ( #1102 )
...
* fix: check kill signal against 0, so that all kill signals will not be ignored.
Signed-off-by: ekexium <eke@fastmail.com>
* refactor: extract method checkKilled()
Signed-off-by: ekexium <eke@fastmail.com>
---------
Signed-off-by: ekexium <eke@fastmail.com>
Co-authored-by: cfzjywxk <lsswxrxr@163.com>
2024-01-10 15:48:27 +08:00
xufei
c8c29046e1
save work ( #1108 )
...
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
2024-01-10 14:09:40 +08:00
nolouch
4c74a838a5
remove the noise log when open debug level
...
Signed-off-by: nolouch <nolouch@gmail.com>
2024-01-03 18:15:53 +08:00
tongjian
c7d29aafa7
client: replace array by priority queue to support cache queue ( #1095 )
...
* impl priority queue
Signed-off-by: bufferflies <1045931706@qq.com>
* replace priority queue
Signed-off-by: bufferflies <1045931706@qq.com>
* fix gosimple
Signed-off-by: bufferflies <1045931706@qq.com>
* remove chinese comment
Signed-off-by: bufferflies <1045931706@qq.com>
---------
Signed-off-by: bufferflies <1045931706@qq.com>
2024-01-03 15:32:51 +08:00
zyguan
dbea404a84
avoid too frequent logs ( #1100 )
...
Signed-off-by: zyguan <zhongyangguan@gmail.com>
2024-01-02 14:52:58 +08:00
glorv
61c486af13
Merge pull request #1092 from glorv/update-pd
...
*: update pd client
2023-12-27 15:08:46 +08:00
glorv
653d46260b
patch tidb for integration test
...
Signed-off-by: glorv <glorvs@163.com>
2023-12-27 15:01:50 +08:00
glorv
8c4189a0b1
update pd client
...
Signed-off-by: glorv <glorvs@163.com>
2023-12-27 13:00:23 +08:00
ekexium
2ea84a6c5a
feat: check kill signal in 2pc committer ( #1084 )
...
Signed-off-by: ekexium <eke@fastmail.com>
Co-authored-by: disksing <i@disksing.com>
2023-12-26 14:54:34 +08:00
Weizhen Wang
85e66083bc
*: set default tls.MinVersion as tls.VersionTLS10 ( #1088 )
...
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
Co-authored-by: disksing <i@disksing.com>
2023-12-25 10:10:32 +08:00
Yongbo Jiang
db2e85c463
fix intersected stale check ( #1090 )
...
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
2023-12-25 09:53:55 +08:00
Weizhen Wang
d0629e1f5a
*: upgrade grpc ( #1086 )
...
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
2023-12-22 13:52:32 +08:00
dependabot[bot]
993220962d
Bump golang.org/x/crypto from 0.16.0 to 0.17.0 in /integration_tests ( #1080 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.16.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: disksing <i@disksing.com>
2023-12-21 11:52:28 +08:00
Yongbo Jiang
1a33acab05
region_cache: allow pd follower handle region api ( #1072 )
...
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
2023-12-20 16:42:14 +08:00
Yongbo Jiang
85ca0a4a3f
region_cache: check epoch before insert ( #1079 )
...
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Co-authored-by: disksing <i@disksing.com>
2023-12-20 14:05:16 +08:00
glorv
4ce1e45671
add a helper function for new ru details ( #1078 )
...
Signed-off-by: glorv <glorvs@163.com>
2023-12-20 10:35:27 +08:00
JmPotato
6f9ba8327b
Update the PD HTTP client to support source mark ( #1081 )
...
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2023-12-19 13:21:37 +08:00
Yongbo Jiang
8deef63a94
region_cache: no need to metrics when inserting for scan regions ( #1077 )
...
* set false when scan region
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
* set false when scan region
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
---------
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
2023-12-18 14:57:25 +08:00
glorv
e80e9ca1fe
resource_control: add ru details in ExecDetails ( #1070 )
...
* collecting the RU information by pasing point through context.Value (#1032 )
Signed-off-by: zzm <zhouzemin@pingcap.com>
* add ruWaitDuration to RUDetails and update pd-client
Signed-off-by: glorv <glorvs@163.com>
---------
Signed-off-by: zzm <zhouzemin@pingcap.com>
Signed-off-by: glorv <glorvs@163.com>
Co-authored-by: zzm <zhouzemin@pingcap.com>
2023-12-04 15:40:48 +08:00