-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
infosync: integrate PD HTTP client into the placement manager #48858
infosync: integrate PD HTTP client into the placement manager #48858
Conversation
Signed-off-by: JmPotato <[email protected]>
abbeeed
to
db0349d
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #48858 +/- ##
=================================================
- Coverage 71.0184% 53.4758% -17.5426%
=================================================
Files 1366 1585 +219
Lines 404637 596869 +192232
=================================================
+ Hits 287367 319181 +31814
- Misses 97283 255200 +157917
- Partials 19987 22488 +2501
Flags with carried forward coverage won't be shown. Click here to find out more.
|
// Clone is used to duplicate a RuleOp for safe modification. | ||
// Note that it is a shallow copy: Constraints is not cloned. | ||
func (r *Rule) Clone() *Rule { | ||
n := &Rule{} | ||
*n = *r | ||
return n | ||
} | ||
|
||
func (r *Rule) String() string { | ||
return fmt.Sprintf("%+v", *r) | ||
} |
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.
These two methods are implemented here now:
/hold |
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.
LGTM
[LGTM Timeline notifier]Timeline:
|
Signed-off-by: JmPotato <[email protected]>
07205ee
to
cf1b5cd
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hawkingrei, YuJuncen, zimulala 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 |
/retest-required |
/unhold |
What problem does this PR solve?
Issue Number: ref #35319, tikv/pd#7300
Problem Summary:
Integrate PD HTTP client into the placement manager.
What is changed and how it works?
PlacementManager
with PD HTTP client.Check List
Tests
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.