disksing
87c1c58064
move tikv.NewTxnClient to txnkv.NewClient ( #391 )
...
Signed-off-by: disksing <i@disksing.com>
2021-12-09 21:38:38 -08:00
Lei Zhao
c0e8766154
txnkv: decrease some max and base backoff time ( #388 )
...
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
2021-12-06 15:29:23 +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
Ziqian Qin
350b6ce9fb
Add an RemoveFromBuffer method for test ( #387 )
...
* export DeleteKey
Signed-off-by: ekexium <ekexium@gmail.com>
* rename DeleteKey to UnsafeRemoveRecord
Signed-off-by: ekexium <ekexium@gmail.com>
* rename the old DeleteKey
Signed-off-by: ekexium <ekexium@gmail.com>
2021-11-30 19:43:54 +08:00
Yexiang Zhang
b11da6307c
txnkv: add ResourceGroupTagger for PessimisticLockRequest ( #381 )
...
* Add ResourceGroupTagger for PessimisticLockRequest
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Fix circular dependency
Signed-off-by: mornyx <mornyx.z@gmail.com>
2021-11-18 23:41:39 +08:00
Sandy Xu
b0d9bb8821
Bump go version to 1.16 ( #379 )
...
* Revert "use ioutil.ReadFile to release dependency of Go 1.16 (#217 )"
This reverts commit aadf3cf627 .
Signed-off-by: Sandy Xu <sandy@juicedata.io>
* use go 1.16 for examples
Signed-off-by: Sandy Xu <sandy@juicedata.io>
2021-11-18 06:06:13 -08:00
cfzjywxk
e0bf24b24d
add newly inserted flag to optimize delete your write ( #378 )
...
Signed-off-by: cfzjywxk <lsswxrxr@163.com>
2021-11-15 21:23:32 -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
Yexiang Zhang
3b9f591c3f
txnkv: add callback for setting ResourceGroupTag ( #368 )
...
* Replace resourceGroupTag with resourceGroupTagFactory(firstKey)
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Fix npe
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Abstract ResourceGroupFactory
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Optimized as ResourceGroupTagger
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Add test for resource group tagger
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Fix unexpected request failed in mock store
Signed-off-by: mornyx <mornyx.z@gmail.com>
* Fix integration tests
Signed-off-by: mornyx <mornyx.z@gmail.com>
Co-authored-by: Wenxuan <breezewish@pingcap.com>
2021-11-14 19:11:14 -08:00
disksing
dd4bc91453
test: remove ticdc compatibility test ( #366 )
...
Signed-off-by: disksing <i@disksing.com>
2021-11-12 00:15:04 -08:00
Xu Qiaolun
8a4ce38c2a
tikv: remove BeginWithOption method ( #370 )
...
* tikv: remove BeginWithOption method
Signed-off-by: Xu Qiaolun <jamesxql@gmail.com>
* reset the tidb version in integration test to latest tidb master
Signed-off-by: Xu Qiaolun <jamesxql@gmail.com>
2021-11-11 00:56:58 -08:00
Yilin Chen
6ac6a8daf2
Abort if the mismatching lock is from the current transaction when resolving locks ( #367 )
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2021-11-10 10:15:56 +08:00
Xu Qiaolun
5ae005dac3
Use a interface method to update the transaction option ( #363 )
...
* txn: Use a interface method to update the transaction option
Signed-off-by: Xu Qiaolun <jamesxql@gmail.com>
* txn: merge Begin and BeginWithOption into one method
Signed-off-by: Xu Qiaolun <jamesxql@gmail.com>
2021-11-03 02:29:33 +00:00
Song Gao
b8cc5a319d
fix metrics error ( #365 )
...
Signed-off-by: yisaer <disxiaofei@163.com>
2021-11-02 12:05:33 +00:00
disksing
c0efee0618
errors: use As to check error type ( #361 )
2021-11-01 10:32:00 +00: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
JmPotato
cef46d13cc
Clean up the temporary changes ( #360 )
...
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2021-11-01 10:25:52 +08:00
JmPotato
2fd3841894
Update the PD client to the latest version ( #352 )
...
* Update the PD client to the latest version
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Temporarily change the TiDB test branch
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Fix the client-go/integration_tests go.mod
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Fix the client-go/integration_tests go.mod again
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Fix the integration_tests
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2021-10-29 10:40:11 +00:00
disksing
c425022782
*: remove use of errors.Trace ( #353 )
...
Signed-off-by: disksing <i@disksing.com>
2021-10-28 16:25:58 +08:00
disksing
796f5433f5
test: update config for compatibility test ( #355 )
...
Signed-off-by: disksing <i@disksing.com>
2021-10-27 18:30:01 +08:00
disksing
70c69a3fac
txnkv/txnsnapshot: remove errors.Trace usages ( #345 )
...
close #344
Signed-off-by: disksing <i@disksing.com>
2021-10-27 08:41:49 +00:00
disksing
5c06d9b19a
txnkv/rangetask: remove errors.Trace usages ( #349 )
...
close #346
Signed-off-by: disksing <i@disksing.com>
2021-10-27 08:36:00 +00:00
disksing
2d145163d0
txnkv/transaction: remove use of errors.Trace ( #351 )
...
Signed-off-by: disksing <i@disksing.com>
2021-10-27 10:13:37 +08:00
disksing
a5250aa7c4
txnkv/txnlock: remove errors.Trace usages ( #350 )
...
close #347
Signed-off-by: disksing <i@disksing.com>
2021-10-25 17:44:03 +08:00
feitian124
b7594dbe6e
tikv: remove use of errors.Trace ( #340 )
...
Signed-off-by: feitian124 <feitian124@gmail.com>
2021-10-20 03:53:36 +00: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
ed3af2fc7f
internal/mockstore: remove use of errors.Trace ( #334 )
...
Signed-off-by: disksing <i@disksing.com>
2021-10-13 07:09:54 +00:00
disksing
61664cf55c
integration_tests: remove use of errors.Trace ( #327 )
...
Signed-off-by: disksing <i@disksing.com>
2021-10-13 06:58:44 +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
b074cb9ad3
internal/client: remove use of errors.Trace ( #329 )
...
Signed-off-by: disksing <i@disksing.com>
2021-10-11 16:59:49 +00:00
disksing
9921da23d5
*: remove parser dependency ( #324 )
...
Signed-off-by: disksing <i@disksing.com>
2021-10-12 00:54:00 +08:00
disksing
49c8dd23f1
error: remove use of terror.ErrResultUndetermined ( #323 )
...
Signed-off-by: disksing <i@disksing.com>
2021-10-11 16:31:57 +08: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
Alkaid
128ccbde43
Add read throughput metric for SLI ( #321 )
...
Signed-off-by: jyz0309 <45495947@qq.com>
2021-10-11 11:46:20 +08:00
you06
843a5378aa
add readable flag ( #320 )
...
Signed-off-by: you06 <you1474600@gmail.com>
2021-10-09 04:30:03 +00:00
Yilin Chen
729d741bfd
Fix the doc for GetSnapshot ( #317 )
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2021-10-05 02:32:00 +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
Yilin Chen
ee5063fec3
Fix flaky TestSecondaryListInPrimaryLock ( #318 )
2021-09-29 13:45:23 +08:00
daimashusheng
4f806a5442
batchput add ttl to every key ( #298 )
...
Signed-off-by: tangjk <tangjiankun1226@gmail.com>
2021-09-26 11:50:08 +00:00
Song Gao
3cc2459779
add label ( #314 )
...
Signed-off-by: yisaer <disxiaofei@163.com>
2021-09-26 18:06:28 +08: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
Jack Yu
d8891ee28d
internal/client: demoted annoying log ( #303 )
...
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2021-09-12 20:45:58 +08:00
disksing
e4229bde58
ci: remove br compatibility test ( #301 )
...
Signed-off-by: disksing <i@disksing.com>
2021-09-08 13:44:17 +08:00
disksing
2d250d555d
error: add function to check if error is undetermined ( #300 )
...
Signed-off-by: disksing <i@disksing.com>
2021-09-08 13:10:34 +08:00
lysu
4fc565e203
config: move resolve-lock-lite-threshold to tikv-client segment ( #297 )
2021-09-02 14:23:07 +08:00