UCP: Add unit tests for the timestamp oracle
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 425
- Forks
- 163
- Avg merge
- 10h 51m
- Merged PRs (30d)
- 3
Description
Description
https://github.com/tikv/client-rust/pull/92 only contains an integration test for the timestamp oracle.
It is better for us to have unit tests without a real PD instance. With a mock PD, we can also inject failpoints to test failure cases.
Difficulty
- Medium
Score
- 300
Mentor(s)
- @sticnarf
- @nrc
Recommended Skills
- Rust
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the timestamp oracle integration test in pull request #92 and the surrounding timestamp-oracle code. Replace the reliance on a real PD instance with unit tests using a mock PD, including failure cases through injected failpoints. Done means the oracle behavior and failure handling are covered without requiring a real PD instance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- distributed-systems, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100