Commit Graph

188 Commits

Author SHA1 Message Date
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
JmPotato c7f8168472
client: fix some typos (#296)
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2021-09-02 14:01:52 +08:00
lysu eb7e4884a8
config: support config resolve lock lite threshold (#291)
Signed-off-by: lysu <sulifx@gmail.com>
2021-09-02 05:31:00 +00: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
Lei Zhao 1798c19099
separate rawkv and txnkv tests (#295)
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
2021-09-01 22:05:16 +08:00
Yilin Chen 16d902a3c7
reduce write backoffs but don't count busy errors (#271)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2021-08-24 09:05:36 +00:00
tiancaiamao feeb9d1ed1
metrics,internal/client: add metrics for batch client stream receiving duration (#279)
Signed-off-by: tiancaiamao <tiancaiamao@gmail.com>

Co-authored-by: disksing <i@disksing.com>
2021-08-23 12:13:37 +00:00
lysu 0c8381cbc2
txnkv: fix delete temp table issue request to kv-server (#281)
Signed-off-by: lysu <sulifx@gmail.com>
2021-08-23 19:56:59 +08:00
tiancaiamao 9d2ad5209e
internal/client: remove the lock for idle connection recycle (#278)
Signed-off-by: tiancaiamao <tiancaiamao@gmail.com>
2021-08-23 15:23:11 +08:00
MyonKeminta e275d06835
txnkv: Fix a bug that OnDeadlock callback is called before setting `IsRetryable` field (#274) (#275)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2021-08-20 13:41:23 +08:00
MyonKeminta ff94d0c9ac
txnkv: Fix a bug that OnDeadlock callback is called before setting `IsRetryable` field (#274)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

Co-authored-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2021-08-20 13:16:08 +08:00
tiancaiamao 31906d4105
internal/client: fix recycle idle connection block sending request (#270)
Signed-off-by: tiancaiamao <tiancaiamao@gmail.com>
2021-08-19 23:40:46 +08: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 b7d1044eb5
config: remove unused utility (#269)
Signed-off-by: disksing <i@disksing.com>
2021-08-16 11:55:36 +08: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 6f33dd97af
Start heartbeat immediately after locking the primary key (#261)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2021-08-06 11:14:25 +08:00
disksing d535b62b62
txnkv/transaction: init package (#260)
Signed-off-by: shirly <AndreMouche@126.com>
Co-authored-by: disksing <i@disksing.com>
2021-07-31 16:26:22 +08:00
Shirly 21ea47fe19
tikv: move temporary export types to package txnkv (#258)
Signed-off-by: shirly <AndreMouche@126.com>
2021-07-31 14:50:56 +08:00
Jack Yu 55155ad2e5
*: make grpc request duration more accurate (#253)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2021-07-27 12:09:05 +00:00
ShuNing 1279692fc2
tikv: increase batch split region limit (#254)
Signed-off-by: nolouch <nolouch@gmail.com>
2021-07-27 10:57:43 +00: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
Shirly 070dd85543
txnkv/txnsnapshot: init package for txnsnapshot (#245)
Signed-off-by: shirly <AndreMouche@126.com>
2021-07-27 12:10:35 +08:00
you06 ce977e34b0
test: fix overflow in ttl equal compare (#246)
Signed-off-by: you06 <you1474600@gmail.com>
2021-07-26 05:40:04 +00:00
Shirly 3d747cd203
tikv/kv.go: define NewLock since both tidb and br are using them (#251) 2021-07-23 15:30:51 +08:00
Shirly fd1d7d8cdf
tikv/kv.go: define Lock & LockResolver before updating tidb/br (#250) 2021-07-23 14:26:17 +08:00
Shirly ac355144c8
tikv/txn: add new pub function LockKeysWithWaitTime (#230)
* tikv/txn: add new pub function LockKeysWithWaitTime

Signed-off-by: shirly <AndreMouche@126.com>

* address comments

Signed-off-by: shirly <AndreMouche@126.com>

* tikv/pessimistic: update the constant for lock wait time

Signed-off-by: shirly <AndreMouche@126.com>

* kv/LockCtx: make lockWaitTime private

Signed-off-by: shirly <AndreMouche@126.com>

* address comments

Signed-off-by: shirly <AndreMouche@126.com>
2021-07-23 10:31:23 +08:00
disksing 66f14b8e0d
add juiceFS link (#248)
Signed-off-by: disksing <i@disksing.com>
2021-07-22 18:38:31 +08:00
lysu 4e1417e3fb
tikv: use resolve lock lite for snapshot.Get() (#247)
Signed-off-by: lysu <sulifx@gmail.com>
2021-07-22 17:59:20 +08:00
iosmanthus f3e7dc3042
add raw key ttl feature (#222)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2021-07-21 16:49:17 +08:00
Shirly 654864ded8
txnkv/txnlock: init Lock in txnlock package (#241)
Signed-off-by: shirly <AndreMouche@126.com>
2021-07-21 15:03:08 +08:00
iosmanthus ce04aa0bf1
add raw cas feature (#239)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2021-07-21 13:52:18 +08:00
Shirly 807f0cd7e0
tikv/gc: init UnsafeDestoryRange (#236)
Signed-off-by: shirly <AndreMouche@126.com>
2021-07-16 09:55:00 +00:00
Yilin Chen f99e5a9251
reset resolvedLocks when setting snapshot ts (#233)
* reset resolvedLocks when setting snapshot ts

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* add test

Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2021-07-16 14:15:12 +08:00
ClSlaid c7db3e3cfb
[internal]: improve RegionRequestRuntimeStats (#235)
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
2021-07-15 09:04:40 +00:00
Shirly 0539869024
txnkv/*: init txnkv/rangetask package (#234) 2021-07-15 10:16:15 +08:00
Shirly 9a71d1d8e3
examples/txnkv: add example for delete_range (#232) 2021-07-14 06:32:15 +00:00
disksing f4a87d3b4a
clean up test utilities (#223)
Signed-off-by: disksing <i@disksing.com>
2021-07-13 16:11:59 +08:00
Shirly d8c7ea50ab
examples/*: rm go.sum (#231)
Signed-off-by: shirly <AndreMouche@126.com>
2021-07-13 07:17:17 +00:00