-
Notifications
You must be signed in to change notification settings - Fork 725
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
*: merge waiting list and suspect regions #8377
Conversation
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8377 +/- ##
==========================================
- Coverage 77.31% 77.20% -0.11%
==========================================
Files 470 470
Lines 61681 61668 -13
==========================================
- Hits 47686 47610 -76
- Misses 10405 10467 +62
- Partials 3590 3591 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
return c.regionWaitingList.Elems() | ||
// GetPendingProcessedRegions returns the pending processed regions in the cache. | ||
func (c *Controller) GetPendingProcessedRegions() []uint64 { | ||
pendingRegions := make([]uint64, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why copy it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Elems()
returns []*Item
pkg/schedule/coordinator.go
Outdated
for _, id := range c.checkers.GetSuspectRegions() { | ||
func (c *Coordinator) checkPendingProcessedRegions() { | ||
ids := c.checkers.GetPendingProcessedRegions() | ||
waitingListGauge.Set(float64(len(ids))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it need to be renamed?
Signed-off-by: Ryan Leung <rleungx@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: HuSharp, lhy1024 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/merge |
@rleungx: We have migrated to builtin 👉 Please use
Instructions 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. |
What problem does this PR solve?
Issue Number: ref #8378
What is changed and how does it work?
Check List
Tests
Release note