tikv / tikv/pd

Scatter might have a skewed distribution if the operators fails

Open
#7,838 0 comments 0 reactions 0 assignees View on GitHub
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

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.