tikv / pd

Placement driver for TiKV
Apache License 2.0
1.03k stars 714 forks source link

client/controller: record context error and add slowlog about token bucket #8344

Open nolouch opened 3 days ago

nolouch commented 3 days ago

What problem does this PR solve?

Issue Number: Close https://github.com/tikv/pd/issues/8343

What is changed and how does it work?

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
- fix the leak problem if the context is canceled

Check List

Tests

Release note

None.
ti-chi-bot[bot] commented 3 days ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from nolouch, ensuring that each of them provides their approval before proceeding. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/tikv/pd/blob/master/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment