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

Region count getting from PD is 0 #6711

Open
rleungx opened this issue Jun 29, 2023 · 0 comments
Open

Region count getting from PD is 0 #6711

rleungx opened this issue Jun 29, 2023 · 0 comments
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@rleungx
Copy link
Member

rleungx commented Jun 29, 2023

Enhancement Task

Recently, we have encountered serval cases: TiDB reported "region count getting from PD is 0" when the cluster has tiflash nodes. There could be the following reasons:

  1. TiDB uses the/stats/region API to query a range from PD when the start key is the same as the end key, it will return 0
  2. there is a range hole in PD, in this situation, we can use the range-holes command to verify it

It's better to distinguish these two cases on the PD side which can help us find the real problem.

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

1 participant