schedule: fix location label in placement rule not work well with rule checker#6633
schedule: fix location label in placement rule not work well with rule checker#6633ti-chi-bot[bot] merged 7 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. |
pkg/schedule/checker/rule_checker.go
Outdated
| if oldStore == 0 { | ||
| return nil, nil | ||
| } | ||
| ruleStores := c.getRuleFitStores(rf) |
There was a problem hiding this comment.
I think here the rule store is a sub-set of theregion stores? maybe directly get all stores which match the rule constraint.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #6633 +/- ##
==========================================
- Coverage 74.61% 74.53% -0.08%
==========================================
Files 417 417
Lines 43060 43067 +7
==========================================
- Hits 32129 32101 -28
- Misses 8087 8112 +25
- Partials 2844 2854 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
|
/check-issue-triage-complete |
| } | ||
| } | ||
|
|
||
| newStore, filterByTempState := strategy.SelectStoreToImprove(coLocationStores, oldStore) |
There was a problem hiding this comment.
what's happen if coLocationStores is nil.
There was a problem hiding this comment.
add a check in both SelectStoreToImprove and SelectStoreToFix
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>
|
/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: 36b0138 |
|
/test build |
|
In response to a cherrypick label: new pull request created to branch |
close tikv#6637 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
|
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: Close #6637
What is changed and how does it work?
This PR is going to use the region store as the source instead of rule stores.
Check List
Tests
Release note