-
Notifications
You must be signed in to change notification settings - Fork 721
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
mcs: support region http interface in scheduling server #7297
Conversation
Signed-off-by: lhy1024 <[email protected]>
Signed-off-by: lhy1024 <[email protected]>
[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. Reviewer can indicate their review by submitting an approval review. |
Skipping CI for Draft Pull Request. |
|
||
// RegisterRegionLabelRouter registers the router of the region label handler. | ||
func (s *Service) RegisterRegionLabelRouter() { | ||
router := s.root.Group("config/region-label") |
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.
Shall we add a sub group in config?
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.
yes, I will do it. The code is written before config pr merged.
Signed-off-by: lhy1024 <[email protected]>
Signed-off-by: lhy1024 <[email protected]>
Is it ready to review? |
I am moving test, it will be ready to review today. |
Signed-off-by: lhy1024 <[email protected]>
Signed-off-by: lhy1024 <[email protected]>
conf.Replication.EnablePlacementRules = true | ||
}) | ||
// FIXME: enable this test in two modes. | ||
env.RunTestInPDMode(suite.checkRegionsReplicated) |
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.
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.
it always try to add rule peer, maybe there is a problem in placement rule sync
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.
I will do it in another pr #7418
8d72880
to
56e08d7
Compare
Signed-off-by: lhy1024 <[email protected]>
88bcd4a
to
11c72ac
Compare
Signed-off-by: lhy1024 <[email protected]>
if rule.filter != nil && !rule.filter(r) { | ||
continue | ||
} | ||
origin := r.URL.Path | ||
// we check the service primary addr here, so no need to check independently again. |
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.
Is it right? cc @rleungx
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.
Yes, because the check service is used to manage service dynamically and tso is not supported now.
Signed-off-by: lhy1024 <[email protected]>
Signed-off-by: lhy1024 <[email protected]>
Signed-off-by: lhy1024 <[email protected]>
b96934b
to
8a6f56d
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #7297 +/- ##
==========================================
- Coverage 74.32% 74.15% -0.18%
==========================================
Files 451 451
Lines 49387 49526 +139
==========================================
+ Hits 36709 36726 +17
- Misses 9417 9497 +80
- Partials 3261 3303 +42
Flags with carried forward coverage won't be shown. Click here to find out more. |
/merge |
@lhy1024: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
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. |
This pull request has been accepted and is ready to merge. Commit hash: 8a6f56d
|
5a2cde9
to
0abe06d
Compare
Signed-off-by: lhy1024 <[email protected]>
0abe06d
to
b777d28
Compare
/merge |
@lhy1024: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
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. |
This pull request has been accepted and is ready to merge. Commit hash: b777d28
|
@lhy1024: Your PR was out of date, I have automatically updated it for you. If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. 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. |
ref tikv#5839 Signed-off-by: lhy1024 <[email protected]> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
What problem does this PR solve?
Issue Number: Ref #5839
What is changed and how does it work?
Check List
Tests
Release note