the LastHeartbeatTS may lost sometime
Open
type/enhancement
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 783
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 36
Description
Found that when a tikv disconnect or is not available for a long time, the LastHeartbeatTS which the pd's api: pd/api/v1/stores return is nil.
More plausibly, the last hearbeat time of tikv should always be preserved, no matter how long it disconnect and what status it become.
Contributor guide
Research direction
Start by tracing the pd/api/v1/stores endpoint and the code that populates LastHeartbeatTS when a TiKV store disconnects or becomes unavailable. Reproduce or inspect the unavailable-store response, then verify that the previously recorded heartbeat timestamp remains present regardless of the store status.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100