-
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
*: fix urls cannot take effect when setting in the config file #6189
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. Reviewer can indicate their review by submitting an approval review. |
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
cmd/pd-server/main.go
Outdated
@@ -122,9 +122,9 @@ func addFlags(cmd *cobra.Command) { | |||
cmd.Flags().BoolP("config-check", "", false, "check config file validity and exit") | |||
cmd.Flags().StringP("name", "", "", "human-readable name for this pd member") | |||
cmd.Flags().StringP("data-dir", "", "", "path to the data directory (default 'default.${name}')") | |||
cmd.Flags().StringP("client-urls", "", "http://127.0.0.1:2379", "url for client traffic") | |||
cmd.Flags().StringP("client-urls", "", "", "url for client traffic") |
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.
cmd.Flags().StringP("client-urls", "", "", "url for client traffic") | |
cmd.Flags().StringP("client-urls", "", "", "urls for client traffic") |
cmd/pd-server/main.go
Outdated
cmd.Flags().StringP("advertise-client-urls", "", "", "advertise url for client traffic (default '${client-urls}')") | ||
cmd.Flags().StringP("peer-urls", "", "http://127.0.0.1:2380", "url for peer traffic") | ||
cmd.Flags().StringP("peer-urls", "", "", "url for peer traffic") |
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.
cmd.Flags().StringP("peer-urls", "", "", "url for peer traffic") | |
cmd.Flags().StringP("peer-urls", "", "", "urls for peer traffic") |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #6189 +/- ##
==========================================
- Coverage 74.71% 74.59% -0.13%
==========================================
Files 394 394
Lines 38662 38662
==========================================
- Hits 28887 28840 -47
- Misses 7237 7273 +36
- Partials 2538 2549 +11
Flags with carried forward coverage won't be shown. Click here to find out more. see 25 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
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 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: a1f6231
|
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.
What if
./pd-server
?
In response to a cherrypick label: new pull request created to branch |
It will use 127.0.0.1:2379 and 2380 as the default value. |
What problem does this PR solve?
Issue Number: Fixes #6190.
What is changed and how does it work?
This PR fixes the problem accidentally introduced by #6004.
Check List
Tests
config.toml:
Release note