-
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
server: implement dynamic forward #8744
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8744 +/- ##
==========================================
- Coverage 75.61% 75.55% -0.07%
==========================================
Files 460 461 +1
Lines 72135 72193 +58
==========================================
- Hits 54543 54542 -1
- Misses 14104 14159 +55
- Partials 3488 3492 +4
Flags with carried forward coverage won't be shown. Click here to find out 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.
can we add any tests for it?
This PR doesn't change too much logic when the config value is false. I will add some tests in the next few PRs if we support changing the configuration. |
server/cluster/cluster.go
Outdated
c.SetServiceIndependent(constant.TSOServiceName) | ||
} | ||
} | ||
} | ||
return | ||
} | ||
|
||
if err := c.startTSOJobs(); err != nil { |
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.
How about renaming it to startTSOJobsIfNeed
? When isAPIServiceMode=false
, we will call startTSOJobs
every time. Starting jobs too much times is strange.
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.
done
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
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]>
/retest |
Signed-off-by: Ryan Leung <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nolouch, okJiang 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 |
What problem does this PR solve?
Issue Number: Ref #8477.
What is changed and how does it work?
Check List
Tests
Release note