-
Notifications
You must be signed in to change notification settings - Fork 726
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
*: remove api mode #8780
base: master
Are you sure you want to change the base?
*: remove api mode #8780
Conversation
Skipping CI for Draft Pull Request. |
baece73
to
e252d4c
Compare
e7daf0e
to
b2ff129
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8780 +/- ##
==========================================
+ Coverage 74.91% 76.38% +1.47%
==========================================
Files 416 465 +49
Lines 42103 70544 +28441
==========================================
+ Hits 31543 53888 +22345
- Misses 7810 13315 +5505
- Partials 2750 3341 +591
Flags with carried forward coverage won't be shown. Click here to find out more. |
a5e5fa5
to
0197c74
Compare
07eb2ef
to
d380e36
Compare
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 there any test results?
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.
Please add some description about these changes.
server/server.go
Outdated
if err := s.member.CampaignLeader(s.ctx, s.cfg.LeaderLease); err != nil { | ||
if err.Error() == errs.ErrEtcdTxnConflict.Error() { | ||
log.Info(fmt.Sprintf("campaign %s leader meets error due to txn conflict, another PD/API server may campaign successfully", s.mode), | ||
log.Info("campaign %PD leader meets error due to txn conflict, another PD/API server may campaign successfully", |
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.
log.Info("campaign %PD leader meets error due to txn conflict, another PD/API server may campaign successfully", | |
log.Info("campaign PD leader meets error due to txn conflict, another PD/API server may campaign successfully", |
d380e36
to
dddb935
Compare
6163af7
to
bf82504
Compare
@@ -39,11 +39,6 @@ func RegisterMicroService(r *gin.RouterGroup) { | |||
// @Router /ms/members/{service} [get] | |||
func GetMembers(c *gin.Context) { | |||
svr := c.MustGet(middlewares.ServerContextKey).(*server.Server) | |||
if !svr.IsPDServiceMode() { |
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.
If access pd mode server, will it return 500?
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.
After this PR, there won't be pd mode anymore.
server/cluster/cluster.go
Outdated
} | ||
} else { | ||
servers, err := discovery.Discover(c.etcdClient, constant.SchedulingServiceName) | ||
if c.opt.GetMicroServiceConfig().IsSchedulingFallbackEnabled() && (err != nil || len(servers) == 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.
If SchedulingFallbackEnabled
is false and there is no scheduling server, will we not try to start scheduling service in pd server?
1be1b98
to
fede5a6
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
b00fb6d
to
fc2e1bd
Compare
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
@rleungx: The following test failed, say
Full PR test history. Your PR dashboard. 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 kubernetes-sigs/prow repository. I understand the commands that are listed here. |
What problem does this PR solve?
Issue Number: ref #8477.
What is changed and how does it work?
Check List
Tests
Release note