pd icon indicating copy to clipboard operation
pd copied to clipboard

Scatter might have a skewed distribution if the operators fails

Open rleungx opened this issue 1 year ago • 0 comments

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.

rleungx avatar Feb 22 '24 07:02 rleungx