tikv / tikv/client-rust

appear segmentfault when calling current_timestamp()

Open
#376 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
425
Forks
163
Avg merge
10h 51m
Merged PRs (30d)
3

Description

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 :

  1. you can access my code at segmentfault path, and run cargo run -- backup table -t 123 -s ./ to reproduce the error
  2. after debug, i saw something happened on grpc part of tikv-client.
    image

hopefully, anyone gives me any advise.

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 with components/pd_client/src/lib.rs at line 17 and run cargo run -- backup table -t 123 -s ./ from the linked reproduction. Inspect the gRPC failure shown during debugging and trace whether it produces a segmentation fault; done means the crash is reproduced, its cause is identified, and the current_timestamp path works without the failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
grpc, rust
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.