-
Notifications
You must be signed in to change notification settings - Fork 726
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
Exceeded resource group quota limitation if request tokens exceeded 500ms #8349
Labels
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.2
report/customer
Customers have encountered this bug.
severity/major
type/bug
The issue is confirmed as a bug.
Comments
nolouch
added
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
and removed
may-affects-5.4
may-affects-6.1
may-affects-6.5
may-affects-7.1
may-affects-7.5
may-affects-8.1
labels
Jul 2, 2024
ti-chi-bot
pushed a commit
to ti-chi-bot/pd
that referenced
this issue
Jul 4, 2024
close tikv#8349 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot bot
pushed a commit
that referenced
this issue
Jul 4, 2024
…ucket (#8344) (#8355) close #8343, ref #8349 client/controller: record context error and add slowlog about token bucket - record low process start time, and log it if it's too slow - record the context error Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io> Signed-off-by: Shuning Chen <nolouch@ShuningdeMacBook-Pro.local> Co-authored-by: ShuNing <nolouch@gmail.com> Co-authored-by: Shuning Chen <nolouch@ShuningdeMacBook-Pro.local>
/approve |
nolouch
added a commit
that referenced
this issue
Jul 4, 2024
…he local bucket (#8352) (#8365) * client/controller: record context error and add slowlog about token bucket (#8344) (#8355) close #8343, ref #8349 client/controller: record context error and add slowlog about token bucket - record low process start time, and log it if it's too slow - record the context error Signed-off-by: Shuning Chen <nolouch@ShuningdeMacBook-Pro.local> * This is an automated cherry-pick of #8352 close #8349 Signed-off-by: nolouch <nolouch@gmail.com> Signed-off-by: Shuning Chen <nolouch@ShuningdeMacBook-Pro.local> --------- Signed-off-by: Shuning Chen <nolouch@ShuningdeMacBook-Pro.local> Signed-off-by: nolouch <nolouch@gmail.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
5 tasks
This was referenced Jul 4, 2024
This was referenced Jul 5, 2024
ti-chi-bot bot
pushed a commit
that referenced
this issue
Jul 8, 2024
close #8349 controller: fix the low_ru request missed The problem is that `c.run.currentRequests` is shared by all groups. If one group triggers a token request that isn't handled by the response, the other group's requests will be discarded. Here, we do not discard the low_ru triggers. Signed-off-by: nolouch <nolouch@gmail.com>
ti-chi-bot
pushed a commit
to ti-chi-bot/pd
that referenced
this issue
Jul 8, 2024
close tikv#8349 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
Jul 8, 2024
close tikv#8349 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
Jul 8, 2024
close tikv#8349 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
This was referenced Jul 8, 2024
ti-chi-bot bot
pushed a commit
that referenced
this issue
Jul 8, 2024
close #8349 controller: fix the low_ru request missed The problem is that `c.run.currentRequests` is shared by all groups. If one group triggers a token request that isn't handled by the response, the other group's requests will be discarded. Here, we do not discard the low_ru triggers. Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io> Signed-off-by: nolouch <nolouch@gmail.com> Co-authored-by: ShuNing <nolouch@gmail.com> Co-authored-by: nolouch <nolouch@gmail.com>
ti-chi-bot bot
pushed a commit
that referenced
this issue
Jul 8, 2024
close #8349 controller: fix the low_ru request missed The problem is that `c.run.currentRequests` is shared by all groups. If one group triggers a token request that isn't handled by the response, the other group's requests will be discarded. Here, we do not discard the low_ru triggers. Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io> Signed-off-by: nolouch <nolouch@gmail.com> Co-authored-by: ShuNing <nolouch@gmail.com> Co-authored-by: nolouch <nolouch@gmail.com>
ti-chi-bot bot
pushed a commit
that referenced
this issue
Jul 8, 2024
close #8349 controller: fix the low_ru request missed The problem is that `c.run.currentRequests` is shared by all groups. If one group triggers a token request that isn't handled by the response, the other group's requests will be discarded. Here, we do not discard the low_ru triggers. Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io> Signed-off-by: nolouch <nolouch@gmail.com> Co-authored-by: ShuNing <nolouch@gmail.com> Co-authored-by: nolouch <nolouch@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.2
report/customer
Customers have encountered this bug.
severity/major
type/bug
The issue is confirmed as a bug.
Bug Report
What did you do?
User use resource control.
What did you expect to see?
no error report
What did you see instead?
meet exceed resource group quota limitation, but RU usage is below the RU settings.
See the above table. Theoretically, Event 1 should immediately trigger Event 3. After Event 3 succeeds, then enough tokens are obtained during the retry period of Event 2, the request can continue. However, it is possible that since the current event-driven system is similar to a single-threaded event loop, in some cases, the processing delay of a certain message exceeds 500 ms, leading to a failure in obtaining tokens and resulting in an error.
What version of PD are you using (
pd-server -V
)?7.5.2
The text was updated successfully, but these errors were encountered: