Scatter might have a skewed distribution if the operators fails
Open
type/enhancement
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 783
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 36
Description
## Enhancement Task
We use a TTL cache to calculate the distribution of scatter, see
https://github.com/tikv/pd/blob/d6d9feab3e2a5180acbcc7095723d43e97798686/pkg/schedule/scatter/region_scatterer.go#L68
But if the operator is created but fails, the cache won't be changed. If the client retries, it might have a skewed distribution.
Contributor guide
Assessment
This issue has not been assessed yet.