-
Notifications
You must be signed in to change notification settings - Fork 312
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
Apply config file on scaled pd server #627
Conversation
Fix pingcap#626 Signed-off-by: lucklove <[email protected]>
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
Codecov Report
@@ Coverage Diff @@
## master #627 +/- ##
==========================================
+ Coverage 47.74% 47.86% +0.12%
==========================================
Files 225 225
Lines 16749 16750 +1
==========================================
+ Hits 7997 8018 +21
+ Misses 7630 7608 -22
- Partials 1122 1124 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
pkg/cluster/spec/pd.go
Outdated
@@ -217,7 +218,8 @@ func (i *PDInstance) InitConfig(e executor.Executor, clusterName, clusterVersion | |||
|
|||
// ScaleConfig deploy temporary config on scaling | |||
func (i *PDInstance) ScaleConfig(e executor.Executor, cluster *Specification, clusterName, clusterVersion, deployUser string, paths meta.DirPaths) error { | |||
if err := i.instance.InitConfig(e, clusterName, clusterVersion, deployUser, paths); err != nil { | |||
// We need pd.toml here, but we don't need to check it | |||
if err := i.InitConfig(e, clusterName, clusterVersion, deployUser, paths); err != nil && errors.Cause(err) != ErrorCheckConfig { |
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.
This line is too long, please split it into two lines.
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
Signed-off-by: lucklove <[email protected]>
Fix #626
Signed-off-by: lucklove [email protected]