tikv / tikv/pd

Add region missing related diagnostic logs

Open
#6,563 0 comments 0 reactions 1 assignee Claimed by @nolouch View on GitHub
type/enhancement
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

## Requirement
Today when TiKV is doing rolling upgrade, TiDB may experience region missing error and has to back off the requests.
This is not expected because the rolling upgrade will do one TiKV per time and do evict leader before the restart. So theoretically the whole process should not impact user traffic.

To know why it happens, it needs to track how a specific region is invalidated in PD side. So more diagnostics logs are needed when invalidating a region.

### What did you do?

### What did you expect to see?
When region missing error occurred, we can search the region id in PD log and find when and why it's invalidated.
### What did you see instead?
No related log can be found at all.

### What version of PD are you using (`pd-server -V`)?
nightly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.