tikv / tikv/pd

PD RPC client provides "output regions must have leader" guarantee option

Open
#8,442 1 comment 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

Callers sometimes have their own logic to check the leader of regions from scan regions API

https://github.com/pingcap/tidb/blob/7e73ddc91b5f9f089e84f0dc645cf71a27b2ad50/br/pkg/restore/split/split.go#L72

https://github.com/tikv/client-go/blob/88ce38492f7b30d95f4e3a7c760ba44c9a32f1be/internal/locate/region_cache.go#L2328-L2339

I prefer the client can provide an option to handle it

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.