Nick Cameron
ecab156fec
Remove retry_response_stream
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-02-16 15:25:01 +13:00
Nick Cameron
f90a82fe35
Add some docs and move try_one_pc out of options ctor
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-01-05 14:48:57 +13:00
Nick Cameron
1c7e843b54
Refactor the retry options
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-01-05 14:48:57 +13:00
Nick Cameron
5d584d93b3
Add option to not automatically resolve regions
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-01-05 14:48:57 +13:00
Nick Cameron
59b4a8d32b
Add an option to not resolve locks on key locked errors
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-01-05 14:48:57 +13:00
Nick Cameron
de9ca63dc9
Add transaction option for no retry
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-01-05 14:48:57 +13:00
Nick Cameron
0db6ab8923
Refactor Backoff
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-01-05 14:48:57 +13:00
Andy Lok
72ab9b3371
rename ClientError to Error
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2020-12-16 15:20:57 +08:00
Andy Lok
d8887b054e
apply clippy
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2020-12-15 18:22:39 +08:00
Andy Lok
f9ab95ce62
Use thiserror and rename Error to ClientError
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2020-12-15 18:13:46 +08:00
ekexium
3aeb0bbfb4
move store and region from tikv-client-store to main crate
...
Signed-off-by: ekexium <ekexium@gmail.com>
2020-10-31 23:54:31 +08:00
Nick Cameron
2aefeb32c1
Build our own protos
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2020-10-30 14:43:56 +13:00
Nick Cameron
bf02734a12
Fix bug with stats
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2020-10-30 09:22:04 +13:00
Nick Cameron
1371f8ee8b
Use async/await for reduce function
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2020-10-29 14:02:45 +13:00
Nick Cameron
20384872a8
Move stats out of common crate
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2020-10-29 13:49:04 +13:00
Nick Cameron
797257aff4
Remove KvRpcRequest
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2020-10-29 13:33:28 +13:00
Nick Cameron
edf6a8055e
Remove DispatchHook
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2020-10-29 13:26:09 +13:00
Nick Cameron
79a2c87408
Make a Request trait in store crate, refactor using it
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2020-10-29 11:52:29 +13:00
Nick Cameron
0b2eb449a6
Tidy up API of tikv-client-store
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2020-10-29 10:24:23 +13:00
Nick Cameron
89bf4c6c53
Use pub exports of common types
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2020-10-29 10:24:23 +13:00
Nick Cameron
6fef86f5a6
use async trait in pd/client
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2020-10-29 10:24:23 +13:00
ekexium
99ef8d0a47
style: use pattern match
...
Signed-off-by: ekexium <ekexium@gmail.com>
2020-10-27 14:08:26 +08:00
ekexium
e516617b36
propagates error instead of panicking when getting context returns error
...
Signed-off-by: ekexium <ekexium@gmail.com>
2020-10-26 22:15:15 +08:00
龙方淞
c01495e20f
Basic support of pessimistic transaction ( #184 )
...
Signed-off-by: longfangsong <longfangsong@icloud.com>
2020-10-22 15:03:54 +08:00
ekexium
9ca9aa79c6
GC: initial implementation ( #182 )
...
Signed-off-by: ekexium <ekexium@gmail.com>
2020-10-13 16:22:56 +08:00
George Teo
ad8ef075af
Add codec for encoding region for transaction client ( #162 )
...
Add codec for encoding region for transaction client. Fix some other bugs.
Signed-off-by: George Teo <george.c.teo@gmail.com>
Co-authored-by: ekexium <ekexium@gmail.com>
2020-09-29 14:05:39 +08:00
ekexium
fb9dc3a81e
match on upper_bound
...
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-15 14:26:51 +08:00
ekexium
4f2ff24724
bound_range: improve code style
...
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-15 11:32:25 +08:00
ekexium
d16887592f
bound region range by query range
...
Signed-off-by: ekexium <ekexium@gmail.com>
2020-09-14 18:49:52 +08:00
ekexium
d7bded1fbf
Extract low-level store and pd crates. ( #157 )
...
Signed-off-by: ekexium <ekexium@gmail.com>
2020-07-16 11:41:57 +08:00
you06
b7ced1f44e
raw: Implement `RawBatchScan` ( #134 )
...
Signed-off-by: you06 <you1474600@gmail.com>
2020-05-25 11:52:58 +08:00
Steven Gu
91e8fba3c7
Adds comments to each struct Backoff, and removes Option from the parameter backoff.
...
Signed-off-by: Steven Gu <asongala@163.com>
2020-03-20 10:13:41 +08:00
Steven Gu
e6920d8b4e
Rollbacks to add `const` new function for struct NoJitterBackoff according to code review.
...
Signed-off-by: Steven Gu <asongala@163.com>
2020-03-20 10:06:21 +08:00
Steven Gu
5f3e4096b0
Updates Backoff trait function next_delay_ms to next_delay_duration according to code review.
...
Signed-off-by: Steven Gu <asongala@163.com>
2020-03-17 16:45:21 +08:00
Steven Gu
5f003ae1ee
Refactors `backoff.rs` and replaces `Arc<impl Backoff>` to `Option<impl Backoff>` according to the code review.
...
Signed-off-by: Steven Gu <asongala@163.com>
2020-03-06 11:51:56 +08:00
Steven Gu
94efe10352
Implements exponential backoff on request retry logic.
...
Signed-off-by: Steven Gu <asongala@163.com>
2020-03-02 18:33:21 +08:00
Steven Gu
f95a704b08
Removes region_retry_delay_ms from RetryState since no change.
...
Signed-off-by: Steven Gu <asongala@163.com>
2020-03-02 17:08:19 +08:00
Steven Gu
ef5a27ccd2
Fixes issue-110:Add backoff and retry limit to requests.
...
Signed-off-by: Steven Gu <asongala@163.com>
2020-03-02 17:08:19 +08:00
Ana Hobden
8d2c784c88
update nightly ( #124 )
...
* update nightly
Signed-off-by: Ana Hobden <operator@hoverbear.org>
* Resolve clippy
Signed-off-by: Ana Hobden <operator@hoverbear.org>
* Fix integration tests
Signed-off-by: Ana Hobden <operator@hoverbear.org>
* Reflect comments
Signed-off-by: Ana Hobden <operator@hoverbear.org>
* fmt
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2019-11-21 18:04:15 -08:00
Yilin Chen
1a604e4ea1
Extract repeated store_stream implementations
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-08-28 14:53:47 +08:00
Yilin Chen
a6505e5bbb
Add delay if all locks are not resolved
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-08-27 00:44:12 +08:00
Yilin Chen
7381efc30d
Resolve locks
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-08-25 21:54:39 +08:00
Yilin Chen
3c4f62f791
Merge remote-tracking branch 'upstream/master' into handle-error
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2019-08-21 13:16:28 +08:00
Nick Cameron
ce55a01151
Rename MockDispatch
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-08-21 08:59:20 +12:00
Nick Cameron
a3eed5e02d
Move stuff around a bit
...
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-08-21 08:59:20 +12:00