client-rust
client-rust copied to clipboard
Rust Client for TiKV.
For backoff, is is a good idea to use [backon](https://github.com/Xuanwo/backon/) instead? _Originally posted by @Xuanwo in https://github.com/tikv/client-rust/pull/404#discussion_r1259224364_
Based on #324 with the following additions: - Rebased on tikv master - Changed `(KvPair, u64)` to `KvPairWithTTL`
test code ``` #[tokio::test] async fn spawn_test(){ use crate::tikv::*; use tikv_client::{Config, Key,TransactionClient as Client, Value}; tokio::spawn(async { let config = Config::default(); let client = Client::new_with_config(vec![PD_ADDR], config).await.unwrap(); let tikv_client = TikvClient::new(vec![PD_ADDR.to_string()]).await;...
Signed-off-by: Ping Yu
`make test_integration` with `MULTI_REGION=1`, the failpoints test cases panic randomly. ``` panicked at 'Dropping an active transaction. Consider commit or rollback it.', /home/runner/work/client-rust/client-rust/src/transaction/transaction.rs:926:21 ```
gRPC error: RpcFailure: 8-RESOURCE_EXHAUSTED Received message larger than max (4563651 vs. 4194304)
Is there a way to solve this problem?
batch_put() api would give the following error: ``` gRPC error: RpcFailure: 13-INTERNAL Failed to deserialize response message: Codec(WireError(UnexpectedWireType(WireTypeLengthDelimited))) ``` tikv server: v6.1.3 I also tested tikv v4.0. It does not...
issue detail: thread 'CPU-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Grpc(RpcFailure(RpcStatus { code: 14-UNAVAILABLE, message: "Connection timed out", details: [] }))', /home/qwm/src/fabarta-db/src/store/src/tikv/[mod.rs:86](http://mod.rs:86/):53 Rust Client timeout: kv_timeout = 60...
background : 1. i'm learning BR of TiDB, and use tikv-client to get TSO. 2. however, when i used example of `pd.current_timestamp` to do, i got an error. help info...
How to set the ttl of a key using the raw api