*: use a separate runner for updating subtree#8158
*: use a separate runner for updating subtree#8158ti-chi-bot[bot] merged 12 commits intotikv:masterfrom
Conversation
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8158 +/- ##
==========================================
+ Coverage 77.34% 77.38% +0.03%
==========================================
Files 471 471
Lines 61398 61407 +9
==========================================
+ Hits 47489 47520 +31
+ Misses 10350 10325 -25
- Partials 3559 3562 +3
Flags with carried forward coverage won't be shown. Click here to find out more. |
pkg/ratelimit/metrics.go
Outdated
There was a problem hiding this comment.
Should we also add metrics to tell the task number of different priorities?
server/cluster/cluster.go
Outdated
There was a problem hiding this comment.
SaveRegionToKV is put into the statistics runner, the runner name might be strange. But I cannot come up with a better name.
There was a problem hiding this comment.
How about just calling it MiscRunner?
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
| taskRunner, statisticsRunner, logRunner = syncRunner, syncRunner, syncRunner | ||
| if c.persistConfig.GetScheduleConfig().EnableHeartbeatConcurrentRunner { | ||
| taskRunner = c.heartbeatRunnner | ||
| taskRunner = c.heartbeatRunner |
There was a problem hiding this comment.
need to add in here?
statisticsRunner = c.statisticsRunner
pkg/core/context.go
Outdated
| TaskRunner ratelimit.Runner | ||
| StatisticsRunner ratelimit.Runner | ||
| LogRunner ratelimit.Runner |
There was a problem hiding this comment.
Could you please help add some comments here to explain the different responsibilities of these runners?
pkg/ratelimit/runner.go
Outdated
| opts *TaskOpts | ||
| f func(context.Context) | ||
| name string | ||
| retained bool |
There was a problem hiding this comment.
This naming is vague without looking at the actual logic, maybe a line of comment would be helpful.
server/cluster/cluster.go
Outdated
There was a problem hiding this comment.
How about just calling it MiscRunner?
Signed-off-by: Ryan Leung <rleungx@gmail.com>
|
/merge |
|
@rleungx: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: eae4f6a |
What problem does this PR solve?
Issue Number: Ref #7897
What is changed and how does it work?
Check List
Tests
Release note