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

/regions/replicated may return the wrong results #5095

Closed
rleungx opened this issue Jun 2, 2022 · 0 comments · Fixed by #5080
Closed

/regions/replicated may return the wrong results #5095

rleungx opened this issue Jun 2, 2022 · 0 comments · Fixed by #5080
Labels
affects-6.0 affects-6.1 This bug affects the 6.1.x(LTS) versions. severity/moderate type/bug The issue is confirmed as a bug.

Comments

@rleungx
Copy link
Member

rleungx commented Jun 2, 2022

Bug Report

Use /regions/replicated to query if the regions in the specified range are all replicated. But this API only checks the regions inside the waiting list which is not accurate and may return the wrong results. See

for _, item := range rc.GetCoordinator().GetWaitingRegions() {

It is because the waiting list is shared by some checkers and saves 1000 regions at most. And in the recent modification, we only put the regions, which are filtered by the temporary store state, into it. Then, the result could be more misleading.

@rleungx rleungx added the type/bug The issue is confirmed as a bug. label Jun 2, 2022
@VelocityLight VelocityLight added affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-5.3 and removed affects-5.3 affects-5.4 This bug affects the 5.4.x(LTS) versions. labels Jun 7, 2022
@rleungx rleungx added affects-6.0 affects-6.1 This bug affects the 6.1.x(LTS) versions. severity/moderate labels Jun 7, 2022
ti-chi-bot pushed a commit that referenced this issue Jun 7, 2022
close #5095

Signed-off-by: Ryan Leung <rleungx@gmail.com>
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Jun 7, 2022
close tikv#5095

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Jun 7, 2022
close tikv#5095

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Jun 7, 2022
close tikv#5095

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@rleungx rleungx removed affects-5.3 affects-5.4 This bug affects the 5.4.x(LTS) versions. labels Jun 15, 2022
CabinfeverB pushed a commit to CabinfeverB/pd that referenced this issue Jul 14, 2022
close tikv#5095

Signed-off-by: Ryan Leung <rleungx@gmail.com>
ti-chi-bot added a commit that referenced this issue Jul 18, 2022
ref #5080, close #5095

Signed-off-by: Ryan Leung <rleungx@gmail.com>

Co-authored-by: Ryan Leung <rleungx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.0 affects-6.1 This bug affects the 6.1.x(LTS) versions. severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants