tikv / tikv/client-rust

UCP: Add unit tests for the timestamp oracle

Open
#93 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

challenge-program-2 enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.