Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to get the regions info within a given key range #13760

Closed
JmPotato opened this issue Nov 9, 2022 · 1 comment
Closed

Provide a way to get the regions info within a given key range #13760

JmPotato opened this issue Nov 9, 2022 · 1 comment
Assignees
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@JmPotato
Copy link
Member

JmPotato commented Nov 9, 2022

Development Task

Sometimes we may need to know which regions are located within a certain key range. Though this could be finished by querying the PD API, in some special cases such as region range hole, we MUST get it according to the TiKV data itself. Currently, tikv-ctl only supports dumping the regions info with given IDs. It would be nice if we can provide a way to get the regions info within a given key range.

@JmPotato JmPotato added the type/enhancement The issue or PR belongs to an enhancement. label Nov 9, 2022
@HuSharp
Copy link
Member

HuSharp commented Nov 9, 2022

/assign

ti-chi-bot pushed a commit that referenced this issue Nov 17, 2022
#13768)

ref #13760

Provide a way to get the regions info within a given key range just like which in [pd-ctl](https://docs.pingcap.com/zh/tidb/dev/pd-control#region-key---formatrawencodehex-key)

Also support limit for tikv-ctl raft region

Signed-off-by: husharp <jinhao.hu@pingcap.com>

Co-authored-by: Xinye Tao <xy.tao@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

2 participants