ekexium
70c148e84e
ErrQueryInterrupted with parameters ( #1124 )
...
* feat: ErrQueryInterrupted with parameters
Signed-off-by: ekexium <eke@fastmail.com>
* Revert "Revert "fix: check kill signal against 0 (#1102 )" (#1129 )"
This reverts commit 3480b5ed7c .
Signed-off-by: ekexium <eke@fastmail.com>
---------
Signed-off-by: ekexium <eke@fastmail.com>
Co-authored-by: cfzjywxk <lsswxrxr@163.com>
2024-02-02 10:26:02 +08:00
zyguan
6e501a142d
improve region reload strategy ( #1122 )
...
* refine region reload strategy
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* fix data race in ut
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* fix another data race
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* access store.epoch atomic
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* re-implement async reload by sync flags
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* a minor optimization
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* fix ut
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* Update internal/locate/region_cache.go
Co-authored-by: ekexium <eke@fastmail.com>
Signed-off-by: zyguan <zhongyangguan@gmail.com>
* rename async-reload to delayed-reload
Signed-off-by: zyguan <zhongyangguan@gmail.com>
---------
Signed-off-by: zyguan <zhongyangguan@gmail.com>
Co-authored-by: ekexium <eke@fastmail.com>
2024-01-31 10:14:07 +08:00
cfzjywxk
d2887d56ab
txn: use region pessimsitic lock rollback to speed up cleanup ( #1125 )
...
* use region pessimsitic lock rollback and clean for write-write conflict processing
Signed-off-by: cfzjywxk <cfzjywxk@gmail.com>
* format
Signed-off-by: cfzjywxk <cfzjywxk@gmail.com>
* debug ci failure patch, disable region pessimistic rollback
Signed-off-by: cfzjywxk <cfzjywxk@gmail.com>
---------
Signed-off-by: cfzjywxk <cfzjywxk@gmail.com>
2024-01-31 09:53:00 +08:00
glorv
5945fe3920
Merge pull request #1143 from lance6716/remove-replace
...
integration_tests: upgrade tidb to remove replace
2024-01-26 16:27:41 +08:00
lance6716
30684f7d3c
use new interface
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-26 13:53:07 +08:00
lance6716
d1b611cbe2
integration_tests: upgrade tidb to remove replace
...
Signed-off-by: lance6716 <lance6716@gmail.com>
2024-01-26 13:48:55 +08:00
Weizhen Wang
e6f5a45b00
fix misspell ( #1135 )
...
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
2024-01-25 11:09:10 +08:00
Weizhen Wang
f90605363e
support grpc's shard buffer pool ( #1132 )
...
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
2024-01-24 17:57:47 +08:00
glorv
99ea0d4d9b
Merge pull request #1123 from lance6716/update-dep
...
dep: update pd client
2024-01-24 16:13:43 +08:00
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