TiKV Client Initialization Fails with "Store Not Match" and "Not Leader" Errors in Rust Where As Go Client is running properly #
https://github.com/tikv/client-rust/issues/476
This issue is Still Persist...
Please provide more information:
- The version (git commit hash) of Rust client.
- The version & deployment of TiKV cluster.
- The scene when the issue happen (It will be great helpful if you can show the codes).
We are facing an issue using the Rust TiKV client (tikv-client = 0.2.0) with a TiKV cluster (v8.5.1) deployed on Kubernetes.
- All operations (e.g., get, put, scan) using the Rust client fail to connect or complete successfully.
- In the same environment and configuration, the Go client connects without any issues and is able to retrieve data.
This strongly suggests the problem is isolated to the Rust client. The code related to this issue has already been shared in issue #476 for reference.
Environment:
- TiKV Cluster Version: v8.5.1
- Rust Client Version: 0.2.0
- Platform: Kubernetes (K8s)
Expected Behavior: The Rust client should establish a connection and perform operations similarly to the Go client.
Actual Behavior: The Rust client fails to connect or perform operations. No data is retrieved or written.
If any additional logs, configurations, or environment details are needed, I’m happy to provide them.
#484 had fixed the known issue which will cause the "Store Not Match" and "Not Leader" error.
So please use the latest commit (7c78aadf44ca401237fcd1670576ff87223122ec, currently) of tikv-client, other than 0.2.0, and try again.
I tested it in my environment with the commit which you mention but the issue is still persist with same error i send you